public class TaggedObject extends Object
Modifier and Type | Field and Description |
---|---|
private int |
id |
private Object |
obj |
private Object |
tag |
Constructor and Description |
---|
TaggedObject(Object obj,
int id)
Construct a new
TaggedObject for the given user object
and numerical ID. |
TaggedObject(Object obj,
Object tag)
Construct a new
TaggedObject for the given user object
and identifier object. |
Modifier and Type | Method and Description |
---|---|
int |
getID()
Get the numerical ID.
|
Object |
getObject()
Get the user object.
|
Object |
getTag()
Get the identifier object.
|
String |
toString()
Get a string representation of the tagged object.
|
public TaggedObject(Object obj, Object tag)
TaggedObject
for the given user object
and identifier object.obj
- The user object.tag
- The identifier object.public TaggedObject(Object obj, int id)
TaggedObject
for the given user object
and numerical ID.obj
- The user object.id
- The numerical ID.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses