|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.datatypes.ListFactory
public abstract class ListFactory
This is a utility class for constructing lists from objects.
| Method Summary | |
|---|---|
static org.millscript.commons.util.IList |
make(java.lang.Object obj)
Returns a list made from the specified object. |
static boolean |
sameAs(java.lang.Object x,
java.lang.Object y)
Checks if the two specified arguments are of the same type, but only for list compatible types. |
static java.lang.Object |
unmake(java.lang.Object obj,
org.millscript.commons.util.IList<?> x)
Returns an object of the specified type, made from the specified list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final org.millscript.commons.util.IList make(java.lang.Object obj)
obj - the object to make a list from
public static final boolean sameAs(java.lang.Object x,
java.lang.Object y)
x - first object to comparey - second object to compare
true if both objects are of the same type and list
compatible, false otherwise
public static final java.lang.Object unmake(java.lang.Object obj,
org.millscript.commons.util.IList<?> x)
make
method, above. e.g. if the target type is a String, the list is taken to
be a list of characters making up a new string.
obj - the target object typex - the list of constituent parts
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||