Module org.refcodes.graphical
Package org.refcodes.graphical
Interface SpriteAccessor.SpriteProperty<T>
-
- Type Parameters:
T
- The sprite's type to be accessed.
- All Superinterfaces:
SpriteAccessor<T>
,SpriteAccessor.SpriteMutator<T>
- Enclosing interface:
- SpriteAccessor<T>
public static interface SpriteAccessor.SpriteProperty<T> extends SpriteAccessor<T>, SpriteAccessor.SpriteMutator<T>
Provides a sprite property.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.SpriteAccessor
SpriteAccessor.SpriteBuilder<T,B extends SpriteAccessor.SpriteBuilder<T,B>>, SpriteAccessor.SpriteMutator<T>, SpriteAccessor.SpriteProperty<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default T
letSprite(T aSprite)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofSpriteAccessor.SpriteMutator.setSprite(Object)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.graphical.SpriteAccessor
getSprite
-
Methods inherited from interface org.refcodes.graphical.SpriteAccessor.SpriteMutator
setSprite
-
-
-
-
Method Detail
-
letSprite
default T letSprite(T aSprite)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofSpriteAccessor.SpriteMutator.setSprite(Object)
and returns the very same value (getter).- Parameters:
aSprite
- The value to set (viaSpriteAccessor.SpriteMutator.setSprite(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-