Package ch.nolix.core.datastructure.pair
Klasse Pair<E1,E2>
java.lang.Object
ch.nolix.core.datastructure.pair.Pair<E1,E2>
- Typparameter:
E1- is the type of the element 1 of aPair.E2- is the type of the element 2 of aPair.
- Alle implementierten Schnittstellen:
IPair<E1,E2>
- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanhasElement1(Object object) booleanhasElement2(Object object) toString()
-
Konstruktordetails
-
Pair
Creates a newPairwith the given elements.- Parameter:
element1-element2-- Löst aus:
ArgumentIsNullException- if the given element 1 is null.ArgumentIsNullException- if the given element 2 is null.
-
-
Methodendetails
-
getStoredElement1
- Angegeben von:
getStoredElement1in SchnittstelleIPair<E1,E2> - Gibt zurück:
- the element1 of the current
IPair.
-
getStoredElement2
- Angegeben von:
getStoredElement2in SchnittstelleIPair<E1,E2> - Gibt zurück:
- the element2 of the current
IPair.
-
hasElement1
- Angegeben von:
hasElement1in SchnittstelleIPair<E1,E2> - Parameter:
object-- Gibt zurück:
- true if the element1 of the current
IPairis the given object.
-
hasElement2
- Angegeben von:
hasElement2in SchnittstelleIPair<E1,E2> - Parameter:
object-- Gibt zurück:
- true if the element2 of the current
IPairis the given object.
-
toString
-