Package icyllis.modernui.resources
Class AttributeFinder
java.lang.Object
icyllis.modernui.resources.AttributeFinder
Provides linear search for sorted needle array (attributes we're looking for)
in the sorted haystack array (the attributes we're searching through).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Called after the search ends.intprotected abstract voidonGetAttribute(int index) Override to updatehaystackNamespaceandhaystackAttribute.voidreset(int start, int end) Called before the search starts.
-
Field Details
-
haystackNamespace
-
haystackAttribute
-
-
Constructor Details
-
AttributeFinder
public AttributeFinder()
-
-
Method Details
-
onGetAttribute
protected abstract void onGetAttribute(int index) Override to updatehaystackNamespaceandhaystackAttribute. -
reset
public void reset(int start, int end) Called before the search starts. -
clear
public void clear()Called after the search ends. -
find
-