|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deri.wsmo4j.logicalexpression.util.SetUtil
public class SetUtil
Utility to check typing of sets
Created on Jul 24, 2005 Committed by $Author: marin_dimitrov $ $Source$,
Constructor Summary | |
---|---|
SetUtil()
|
Method Summary | |
---|---|
static boolean |
allOfType(Collection collection,
Class type)
Checks if all object in a collection are of specfic type. |
static Set |
createSet(Object o)
Create an HashSet, add an Object to it and return the Set |
static Set |
createSet(Object o1,
Object o2)
Create an HashSet, add two Objects to it and return the Set |
static Set |
createSet(Object o1,
Object o2,
Object o3)
Create an HashSet, add three Objects to it and return the Set |
static Set |
createSet(Object o1,
Object o2,
Object o3,
Object o4)
Create an HashSet, add four Objects to it and return the Set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetUtil()
Method Detail |
---|
public static boolean allOfType(Collection collection, Class type)
collection
- collection to be checkedtype
- the Type that the objects have to be an instance of
public static Set createSet(Object o)
o
- Object to be added to the HashSet
public static Set createSet(Object o1, Object o2)
o1
- Object 1 to be added to the HashSeto2
- Object 2 to be added to the HashSet
public static Set createSet(Object o1, Object o2, Object o3)
o1
- Object 1 to be added to the HashSeto2
- Object 2 to be added to the HashSeto3
- Object 3 to be added to the HashSet
public static Set createSet(Object o1, Object o2, Object o3, Object o4)
o1
- Object 1 to be added to the HashSeto2
- Object 2 to be added to the HashSeto3
- Object 3 to be added to the HashSeto4
- Object 4 to be added to the HashSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |