Class OMultiKey

java.lang.Object
com.orientechnologies.common.util.OMultiKey

public class OMultiKey extends Object
Multiple key container that is used as key for Map. Despite of the List order of keys does not matter, but unlike Set can contain duplicate values.
  • Constructor Details

    • OMultiKey

      public OMultiKey(Collection<?> keys)
  • Method Details

    • hashCode

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

      public boolean equals(Object o)
      Objects are equals if they contain the same amount of keys and these keys are equals. Order of keys does not matter.
      Overrides:
      equals in class Object
      Parameters:
      o - obj the reference object with which to compare.
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object