IDTYPE - The type of the ID.@Immutable public final class TypedObject<IDTYPE extends Serializable> extends Object implements ITypedObject<IDTYPE>, Serializable
| Constructor and Description |
|---|
TypedObject(ITypedObject<IDTYPE> aObj) |
TypedObject(ObjectType aTypeID,
IDTYPE aID) |
| Modifier and Type | Method and Description |
|---|---|
static <IDTYPE extends Serializable> |
create(ITypedObject<IDTYPE> aObj) |
static <IDTYPE extends Serializable> |
create(ObjectType aTypeID,
IDTYPE aID) |
boolean |
equals(Object o) |
IDTYPE |
getID()
Get the unique ID of this object.
|
ObjectType |
getTypeID() |
int |
hashCode() |
String |
toString() |
public TypedObject(@Nonnull ITypedObject<IDTYPE> aObj)
public TypedObject(@Nonnull ObjectType aTypeID, @Nonnull IDTYPE aID)
@Nonnull public ObjectType getTypeID()
@Nonnull public IDTYPE getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!getID in interface IHasID<IDTYPE extends Serializable>null.@Nonnull public static <IDTYPE extends Serializable> TypedObject<IDTYPE> create(@Nonnull ITypedObject<IDTYPE> aObj)
@Nonnull public static <IDTYPE extends Serializable> TypedObject<IDTYPE> create(@Nonnull ObjectType aTypeID, @Nonnull IDTYPE aID)
Copyright © 2006–2014 phloc systems. All rights reserved.