Package ch.nolix.core.container.pair
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 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 TypMethodeBeschreibungboolean
hasElement1
(Object object) boolean
hasElement2
(Object object) toString()
-
Konstruktordetails
-
Pair
Creates a newPair
with 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:
getStoredElement1
in SchnittstelleIPair<E1,
E2> - Gibt zurück:
- the element1 of the current
IPair
.
-
getStoredElement2
- Angegeben von:
getStoredElement2
in SchnittstelleIPair<E1,
E2> - Gibt zurück:
- the element2 of the current
IPair
.
-
hasElement1
- Angegeben von:
hasElement1
in SchnittstelleIPair<E1,
E2> - Parameter:
object
-- Gibt zurück:
- true if the element1 of the current
IPair
is the given object.
-
hasElement2
- Angegeben von:
hasElement2
in SchnittstelleIPair<E1,
E2> - Parameter:
object
-- Gibt zurück:
- true if the element2 of the current
IPair
is the given object.
-
toString
-