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 InterfaceAddresscomponent(int component)InterfaceAddressfilter(Predicate<InterfaceComponent> predicate)intgetComponent()InterfaceAddressgetNext()InterfaceAddressgetPrevious()intgetRoot()intgetSubComponent()voidifPresent(Consumer<InterfaceComponent> action)booleanisMapped()<K> Kmap(Function<InterfaceComponent,K> mapper)booleanmapToBoolean(Predicate<InterfaceComponent> mapper)intmapToInt(ToIntFunction<InterfaceComponent> mapper)InterfaceComponentresolve()InterfaceComponentresolve(Consumer<InterfaceComponent> action)InterfaceAddresssubComponent(int subComponent)InterfaceAddresssubComponent(int component, int subComponent)StringtoShortString()StringtoString()
-
-
-
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()
-
-