Class ECDB.LabeledID

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

public static class ECDB.LabeledID extends Object
Base class for labeled IDs This class represents a binding between an integer ID and a string labeling that ID.
  • Constructor Details

    • LabeledID

      public LabeledID(int id, String label)
      Constructor.
      Parameters:
      id - the ID
      label - the label
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Get a string representation for this object showing only the label.
      Overrides:
      toString in class Object
      Returns:
      the label
    • toFullString

      public String 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

      public String getLabel()
      Get the label for this object.
      Returns:
      the label