Package org.rspeer.game.component
Class InterfaceAddress
java.lang.Object
org.rspeer.game.component.InterfaceAddress
Represents an address which can be used to lookup an
InterfaceComponent
-
Constructor Summary
ConstructorDescriptionInterfaceAddress
(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
Modifier and TypeMethodDescriptioncomponent
(int component) filter
(Predicate<InterfaceComponent> predicate) int
getNext()
int
getRoot()
int
void
ifPresent
(Consumer<InterfaceComponent> action) boolean
isMapped()
<K> K
map
(Function<InterfaceComponent, K> mapper) boolean
mapToBoolean
(Predicate<InterfaceComponent> mapper) int
mapToInt
(ToIntFunction<InterfaceComponent> mapper) resolve()
resolve
(Consumer<InterfaceComponent> action) subComponent
(int subComponent) subComponent
(int component, int subComponent) toString()
-
Constructor Details
-
InterfaceAddress
-
InterfaceAddress
public InterfaceAddress(int root, int component, int subComponent) -
InterfaceAddress
public InterfaceAddress(int root, int component) -
InterfaceAddress
public InterfaceAddress(int root) -
InterfaceAddress
-
-
Method Details
-
getRoot
public int getRoot() -
getComponent
public int getComponent() -
getSubComponent
public int getSubComponent() -
component
-
subComponent
-
subComponent
-
getNext
-
getPrevious
-
toString
-
toShortString
-
ifPresent
-
resolve
-
map
-
mapToInt
-
mapToBoolean
-
filter
-
resolve
-
isMapped
public boolean isMapped()
-