Package org.intermine.api.profile
Class BagValue
- java.lang.Object
-
- org.intermine.api.profile.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()
-
-
-
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 classjava.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 classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-