Class BagValue


  • public final class BagValue
    extends java.lang.Object
    A class representing a value stored in an InterMineBag.
    Author:
    dbutano, Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      BagValue​(java.lang.String value, java.lang.String extra)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)
      Two bag values are identical if they have the same value and extra value.
      java.lang.String getExtra()  
      java.lang.String getValue()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BagValue

        public BagValue​(java.lang.String value,
                        java.lang.String extra)
        Constructor
        Parameters:
        value - The primary value of this item.
        extra - The extra distinguishing value of this item (eg. Organism.name for Gene).
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Returns:
        the primary field of this item
      • getExtra

        public java.lang.String getExtra()
        Returns:
        the extra distinguishing value of this item (eg. Organism.name for Gene).
      • equals

        public boolean equals​(java.lang.Object other)
        Two bag values are identical if they have the same value and extra value. Blank extra values are equivalent.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - The thing to compare to.
        Returns:
        Whether or not the two things are equal.
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object