Package jsl.utilities
Class Identity
- java.lang.Object
-
- jsl.utilities.Identity
-
- All Implemented Interfaces:
GetNameIfc
,IdentityIfc
- Direct Known Subclasses:
RNStreamFactory
,RNStreamFactoryDepracated
,RNStreamMakerBU
public class Identity extends java.lang.Object implements IdentityIfc
A class to assist with the naming and numbering of objects. The number cannot change, but the name can be changed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Returns the id for this objectjava.lang.String
getName()
Gets the name.void
setName(java.lang.String str)
Sets the name.
-
-
-
Method Detail
-
getName
public final java.lang.String getName()
Gets the name.- Specified by:
getName
in interfaceGetNameIfc
- Returns:
- The name of object.
-
getId
public final int getId()
Returns the id for this object- Specified by:
getId
in interfaceIdentityIfc
- Returns:
- the id for this object
-
setName
public final void setName(java.lang.String str)
Sets the name. If null, a name is constructed based on the simple class name and the id of the object- Parameters:
str
- The name as a string.
-
-