public final class ImmutableTree extends Object implements ISerializedObjectTree
Constructor and Description |
---|
ImmutableTree(ObjectId id,
Class<?> type,
String label,
int size,
List<? extends ISerializedObjectTree> children) |
Modifier and Type | Method and Description |
---|---|
List<? extends ISerializedObjectTree> |
children()
list of children
|
int |
childSize()
size of all children
|
ObjectId |
id()
node id
|
String |
label()
node label if any
|
int |
size()
size of object without children
|
String |
toString() |
Class<? extends Object> |
type()
node type
|
public ImmutableTree(ObjectId id, Class<?> type, String label, int size, List<? extends ISerializedObjectTree> children)
public ObjectId id()
ISerializedObjectTree
id
in interface ISerializedObjectTree
public int size()
ISerializedObjectTree
size
in interface ISerializedObjectTree
public int childSize()
ISerializedObjectTree
childSize
in interface ISerializedObjectTree
public Class<? extends Object> type()
ISerializedObjectTree
type
in interface ISerializedObjectTree
public String label()
ISerializedObjectTree
label
in interface ISerializedObjectTree
public List<? extends ISerializedObjectTree> children()
ISerializedObjectTree
children
in interface ISerializedObjectTree
Copyright © 2015. All rights reserved.