Class StringPair

java.lang.Object
io.goobi.viewer.model.viewer.StringPair
All Implemented Interfaces:
Serializable, Comparable<StringPair>

public class StringPair extends Object implements Comparable<StringPair>, Serializable

StringPair class.

See Also:
  • Constructor Details

    • StringPair

      public StringPair(String one, String two)

      Constructor for StringPair.

      Parameters:
      one - a String object.
      two - a String object.
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public int compareTo(StringPair o)
      Compare by translation.
      Specified by:
      compareTo in interface Comparable<StringPair>
    • getOne

      public String getOne()

      Getter for the field one.

      Returns:
      the one
    • setOne

      public void setOne(String one)

      Setter for the field one.

      Parameters:
      one - the one to set
    • getTwo

      public String getTwo()

      Getter for the field two.

      Returns:
      the two
    • setTwo

      public void setTwo(String two)

      Setter for the field two.

      Parameters:
      two - the two to set
    • toString

      public String toString()
      Overrides:
      toString in class Object