|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructUtil
public final class StructUtil
Constructor Summary | |
---|---|
StructUtil()
|
Method Summary | |
---|---|
static void |
copy(Struct source,
Struct target,
boolean overwrite)
copy data from source struct to target struct |
static Struct |
copyToStruct(Map map)
|
static Struct |
duplicate(Struct sct,
boolean deepCopy)
|
static Set |
entrySet(Struct sct)
|
static Set |
keySet(Struct sct)
|
static void |
putAll(Struct struct,
Map map)
|
static void |
removeValue(Map map,
Object value)
remove every entry hat has this value |
static void |
setELIgnoreWhenNull(Struct sct,
Collection.Key key,
Object value)
|
static void |
setELIgnoreWhenNull(Struct sct,
String key,
Object value)
|
static long |
sizeOf(Struct sct)
return the size of given struct, size of values + keys |
static Collection.Key[] |
toCollectionKeys(String[] skeys)
|
static DumpTable |
toDumpTable(Struct sct,
String title,
PageContext pageContext,
int maxlevel,
DumpProperties dp)
|
static Collection |
values(Struct sct)
create a value return value out of a struct |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StructUtil()
Method Detail |
---|
public static void copy(Struct source, Struct target, boolean overwrite)
source
- target
- overwrite
- overwrite data if exist in targetpublic static Collection.Key[] toCollectionKeys(String[] skeys)
public static Struct duplicate(Struct sct, boolean deepCopy)
sct
-
public static void putAll(Struct struct, Map map)
public static Set entrySet(Struct sct)
public static Set keySet(Struct sct)
public static DumpTable toDumpTable(Struct sct, String title, PageContext pageContext, int maxlevel, DumpProperties dp)
public static Collection values(Struct sct)
sct
-
public static Struct copyToStruct(Map map) throws PageException
PageException
public static long sizeOf(Struct sct)
sct
-
public static void setELIgnoreWhenNull(Struct sct, String key, Object value)
public static void setELIgnoreWhenNull(Struct sct, Collection.Key key, Object value)
public static void removeValue(Map map, Object value)
map
- obj
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |