Package de.marcely.bedwars.tools
Class Either.Left<L,R>
java.lang.Object
de.marcely.bedwars.tools.Either.Left<L,R>
- All Implemented Interfaces:
Either<L,
R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.marcely.bedwars.tools.Either
Either.Left<L,
R>, Either.Right<L, R> -
Constructor Summary
-
Method Summary
-
Constructor Details
-
Left
-
-
Method Details
-
hasLeft
public boolean hasLeft()Description copied from interface:Either
Returns if something has been set to the left field.Either.hasRight()
will returnfalse
if this method returnstrue
-
hasRight
public boolean hasRight()Description copied from interface:Either
Returns if something has been set to the right field.Either.hasLeft()
will returnfalse
if this method returnstrue
-
left
Description copied from interface:Either
Retrieve the left value.May return
null
even whenEither.hasLeft()
returns true. Also returnsnull
if this is a right value. -
right
Description copied from interface:Either
Retrieve the right value.May return
null
even whenEither.hasRight()
returns true. Also returnsnull
if this is a left value.
-