Class InterfaceAddress
java.lang.Object
org.rspeer.game.component.InterfaceAddress
Represents an address which can be used to lookup an
InterfaceComponent-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceAddress(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) intgetNext()getRelative(int offset) intgetRoot()intvoidifPresent(Consumer<InterfaceComponent> action) booleanisMapped()<K> Kmap(Function<InterfaceComponent, K> mapper) booleanmapToBoolean(Predicate<InterfaceComponent> mapper) intmapToInt(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
-
getRelative
-
getNext
-
getPrevious
-
toString
-
toShortString
-
ifPresent
-
resolve
-
map
-
mapToInt
-
mapToBoolean
-
filter
-
resolve
-
isMapped
public boolean isMapped()
-