Package de.marcely.bedwars.tools
Class Either.Right<L,R>
java.lang.Object
de.marcely.bedwars.tools.Either.Right<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
Constructors -
Method Summary
-
Constructor Details
-
Right
-
-
Method Details
-
hasLeft
public boolean hasLeft()Description copied from interface:EitherReturns if something has been set to the left field.Either.hasRight()will returnfalseif this method returnstrue -
hasRight
public boolean hasRight()Description copied from interface:EitherReturns if something has been set to the right field.Either.hasLeft()will returnfalseif this method returnstrue -
left
Description copied from interface:EitherRetrieve the left value.May return
nulleven whenEither.hasLeft()returns true. Also returnsnullif this is a right value. -
right
Description copied from interface:EitherRetrieve the right value.May return
nulleven whenEither.hasRight()returns true. Also returnsnullif this is a left value.
-