public class Safe extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
close(Closeable closeable)
Close a closable object.
|
static boolean |
equals(Object o1,
Object o2)
Return true if both objects are null or both are non null and the equals method of one object returns true when it is
invoked with the other object as argument.
|
static byte[] |
getBytes(InputStream is) |
static <E> Set<E> |
unmodifiableSet(Set<E> set)
Wrap the set so that it is unmodifiable when it is not null, otherwise returns null.
|
static <E> org.exoplatform.commons.utils.ListAccess<E> |
unwrap(org.exoplatform.commons.utils.PageList<E> pageList) |
public static boolean equals(Object o1, Object o2)
o1 - the first objecto2 - the second objectpublic static boolean close(Closeable closeable)
closeable - the closeablepublic static byte[] getBytes(InputStream is)
public static <E> Set<E> unmodifiableSet(Set<E> set)
E - the set generic element typeset - the set to wrappublic static <E> org.exoplatform.commons.utils.ListAccess<E> unwrap(org.exoplatform.commons.utils.PageList<E> pageList)
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.