public class Group
extends java.lang.Object
Group
is a group of objects that shares some common values
for some properties. One of the objects is designated as "the object" to
represent all "items" with the same common values for some properties. JETT
will not be able to determine the type of the objects at compile time, so
there's no point to making this class generic.Constructor | Description |
---|---|
Group() |
Constructs a
Group without a representative object or a list
of all items in the group. |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<?> |
getItems() |
Returns the
List of items in the group. |
java.lang.Object |
getObj() |
Returns the object that is representative of all objects in the group.
|
void |
setItems(java.util.List<?> items) |
Sets the
List of items in the group. |
void |
setObj(java.lang.Object obj) |
Sets the object that is representative of all objects in the group.
|
java.lang.String |
toString() |
Returns the string representation.
|
public Group()
Group
without a representative object or a list
of all items in the group.public java.lang.Object getObj()
public void setObj(java.lang.Object obj)
obj
- An object that is representative of all objects in the group.public java.util.List<?> getItems()
List
of items in the group.List
of items in the group.public void setItems(java.util.List<?> items)
List
of items in the group.items
- The List
of items in the group.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012–2018 Jett Team. All rights reserved.