Module org.refcodes.checkerboard
Package org.refcodes.checkerboard
Interface PlayerAccessor.PlayerProperty<P extends Player<P,?>>
-
- Type Parameters:
P
- the generic type
- All Superinterfaces:
PlayerAccessor<P>
,PlayerAccessor.PlayerMutator<P>
- Enclosing interface:
- PlayerAccessor<P extends Player<P,?>>
public static interface PlayerAccessor.PlayerProperty<P extends Player<P,?>> extends PlayerAccessor<P>, PlayerAccessor.PlayerMutator<P>
Provides a player property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.checkerboard.PlayerAccessor
PlayerAccessor.PlayerBuilder<P extends Player<P,?>,B extends PlayerAccessor.PlayerBuilder<P,B>>, PlayerAccessor.PlayerMutator<P extends Player<P,?>>, PlayerAccessor.PlayerProperty<P extends Player<P,?>>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default P
letPlayer(P aPlayer)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPlayer
(setter) as ofPlayerAccessor.PlayerMutator.setPlayer(Player)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.checkerboard.PlayerAccessor
getPlayer
-
Methods inherited from interface org.refcodes.checkerboard.PlayerAccessor.PlayerMutator
setPlayer
-
-
-
-
Method Detail
-
letPlayer
default P letPlayer(P aPlayer)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenPlayer
(setter) as ofPlayerAccessor.PlayerMutator.setPlayer(Player)
and returns the very same value (getter).- Parameters:
aPlayer
- ThePlayer
to set (viaPlayerAccessor.PlayerMutator.setPlayer(Player)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-