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 TypeMethodDescriptionvoid
clear()
Called after the search ends.int
protected abstract void
onGetAttribute
(int index) Override to updatehaystackNamespace
andhaystackAttribute
.void
reset
(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 updatehaystackNamespace
andhaystackAttribute
. -
reset
public void reset(int start, int end) Called before the search starts. -
clear
public void clear()Called after the search ends. -
find
-