|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUtils.SetUtils
public class SetUtils
Utility class fo sets
Nested Class Summary | |
---|---|
static class |
SetUtils.SetHasMultipleElementsException
Exception thrown if an attempt is made to get the single element from a set that has multiple elements. |
Method Summary | ||
---|---|---|
static
|
getSingleElement(java.util.Set<T> set)
Gets the single element of a set if it has only one element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T getSingleElement(java.util.Set<T> set) throws SetUtils.SetHasMultipleElementsException
T
- The type of the elements of the setset
- The set
SetUtils.SetHasMultipleElementsException
- If the set has multiple
elements in it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |