Klasse Pair<E1,E2>

java.lang.Object
ch.nolix.core.container.pair.Pair<E1,E2>
Typparameter:
E1 - is the type of the element 1 of a Pair.
E2 - is the type of the element 2 of a Pair.
Alle implementierten Schnittstellen:
IPair<E1,E2>

public final class Pair<E1,E2> extends Object implements IPair<E1,E2>
A Pair contains 2 elements. A Pair is not mutable.
Autor:
Silvan Wyss
  • Konstruktordetails

  • Methodendetails

    • getStoredElement1

      public E1 getStoredElement1()
      Angegeben von:
      getStoredElement1 in Schnittstelle IPair<E1,E2>
      Gibt zurück:
      the element1 of the current IPair.
    • getStoredElement2

      public E2 getStoredElement2()
      Angegeben von:
      getStoredElement2 in Schnittstelle IPair<E1,E2>
      Gibt zurück:
      the element2 of the current IPair.
    • hasElement1

      public boolean hasElement1(Object object)
      Angegeben von:
      hasElement1 in Schnittstelle IPair<E1,E2>
      Parameter:
      object -
      Gibt zurück:
      true if the element1 of the current IPair is the given object.
    • hasElement2

      public boolean hasElement2(Object object)
      Angegeben von:
      hasElement2 in Schnittstelle IPair<E1,E2>
      Parameter:
      object -
      Gibt zurück:
      true if the element2 of the current IPair is the given object.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object