Class ReferenceList


  • public class ReferenceList
    extends java.lang.Object
    Representation of a field in an object.
    Author:
    Andrew Varley
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name  
      protected java.util.List<java.lang.String> refIds  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceList()
      Constructor
      ReferenceList​(java.lang.String name)
      Constructor
      ReferenceList​(java.lang.String name, java.util.List<java.lang.String> refIds)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRefId​(java.lang.String refId)
      Add a value to the list of references.
      boolean equals​(java.lang.Object o)
      java.lang.String getName()
      Get the name of this field.
      java.util.List<java.lang.String> getRefIds()
      Get the references in this collection.
      int hashCode()
      void setName​(java.lang.String name)
      Set the name of this field.
      void setRefIds​(java.util.List<java.lang.String> refIds)
      Set the references in this collection
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • refIds

        protected java.util.List<java.lang.String> refIds
    • Constructor Detail

      • ReferenceList

        public ReferenceList()
        Constructor
      • ReferenceList

        public ReferenceList​(java.lang.String name)
        Constructor
        Parameters:
        name - the name
      • ReferenceList

        public ReferenceList​(java.lang.String name,
                             java.util.List<java.lang.String> refIds)
        Constructor
        Parameters:
        name - the name
        refIds - the refIds
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Set the name of this field.
        Parameters:
        name - the name
      • getName

        public java.lang.String getName()
        Get the name of this field.
        Returns:
        the name
      • addRefId

        public void addRefId​(java.lang.String refId)
        Add a value to the list of references.
        Parameters:
        refId - the value
      • getRefIds

        public java.util.List<java.lang.String> getRefIds()
        Get the references in this collection.
        Returns:
        the list of references
      • setRefIds

        public void setRefIds​(java.util.List<java.lang.String> refIds)
        Set the references in this collection
        Parameters:
        refIds - the refIds
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object