Package org.rspeer.game.component
Class InterfaceAddress
- java.lang.Object
-
- org.rspeer.game.component.InterfaceAddress
-
public class InterfaceAddress extends Object
Represents an address which can be used to lookup anInterfaceComponent
-
-
Constructor Summary
Constructors Constructor Description InterfaceAddress(int root)
InterfaceAddress(int root, int component)
InterfaceAddress(int root, int component, int subComponent)
InterfaceAddress(Supplier<InterfaceComponent> supplier)
InterfaceAddress(InterfaceComposite group, int component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterfaceAddress
component(int component)
InterfaceAddress
filter(Predicate<InterfaceComponent> predicate)
int
getComponent()
InterfaceAddress
getNext()
InterfaceAddress
getPrevious()
int
getRoot()
int
getSubComponent()
void
ifPresent(Consumer<InterfaceComponent> action)
boolean
isMapped()
<K> K
map(Function<InterfaceComponent,K> mapper)
boolean
mapToBoolean(Predicate<InterfaceComponent> mapper)
int
mapToInt(ToIntFunction<InterfaceComponent> mapper)
InterfaceComponent
resolve()
InterfaceComponent
resolve(Consumer<InterfaceComponent> action)
InterfaceAddress
subComponent(int subComponent)
InterfaceAddress
subComponent(int component, int subComponent)
String
toShortString()
String
toString()
-
-
-
Constructor Detail
-
InterfaceAddress
public InterfaceAddress(Supplier<InterfaceComponent> supplier)
-
InterfaceAddress
public InterfaceAddress(int root, int component, int subComponent)
-
InterfaceAddress
public InterfaceAddress(int root, int component)
-
InterfaceAddress
public InterfaceAddress(int root)
-
InterfaceAddress
public InterfaceAddress(InterfaceComposite group, int component)
-
-
Method Detail
-
getRoot
public int getRoot()
-
getComponent
public int getComponent()
-
getSubComponent
public int getSubComponent()
-
component
public InterfaceAddress component(int component)
-
subComponent
public InterfaceAddress subComponent(int subComponent)
-
subComponent
public InterfaceAddress subComponent(int component, int subComponent)
-
getNext
public InterfaceAddress getNext()
-
getPrevious
public InterfaceAddress getPrevious()
-
toShortString
public String toShortString()
-
ifPresent
public void ifPresent(Consumer<InterfaceComponent> action)
-
resolve
public InterfaceComponent resolve(Consumer<InterfaceComponent> action)
-
map
public <K> K map(Function<InterfaceComponent,K> mapper)
-
mapToInt
public int mapToInt(ToIntFunction<InterfaceComponent> mapper)
-
mapToBoolean
public boolean mapToBoolean(Predicate<InterfaceComponent> mapper)
-
filter
public InterfaceAddress filter(Predicate<InterfaceComponent> predicate)
-
resolve
public InterfaceComponent resolve()
-
isMapped
public boolean isMapped()
-
-