java.lang.Object
org.bzdev.ecdb.ECDB.LabeledID
- Direct Known Subclasses:
ECDB.CarrierLabeledID
,ECDB.EventLabeledID
,ECDB.InstanceLabeledID
,ECDB.LocationLabeledID
,ECDB.OwnerLabeledID
,ECDB.SeriesLabeledID
,ECDB.UserLabeledID
- Enclosing class:
- ECDB
Base class for labeled IDs
This class represents a binding between an integer ID and
a string labeling that ID.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LabeledID
Constructor.- Parameters:
id
- the IDlabel
- the label
-
-
Method Details
-
equals
-
toString
Get a string representation for this object showing only the label. -
toFullString
Get a string representation for thi object showing both a label and an integer ID.- Returns:
- the string representation
-
getID
public int getID()Get the ID for this object.- Returns:
- the ID
-
getLabel
Get the label for this object.- Returns:
- the label
-