Package io.keikai.doc.collab.types
Class ArraySearchMarker
java.lang.Object
io.keikai.doc.collab.types.ArraySearchMarker
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intA unique timestamp that identifies each marker.static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArraySearchMarkerfindMarker(AbstractType yArray, int index) Finds a marker for the given index in an AbstractType.intgetIndex()getP()voidsetIndex(int index) voidstatic voidupdateMarkerChanges(List<ArraySearchMarker> searchMarker, int index, int len) Updates markers when a change happens.
-
Field Details
-
MAX_SEARCH_MARKER
public static final int MAX_SEARCH_MARKER- See Also:
-
globalSearchMarkerTimestamp
public static int globalSearchMarkerTimestampA unique timestamp that identifies each marker. Time is relative, this is more like an ever-increasing clock.
-
-
Constructor Details
-
ArraySearchMarker
public ArraySearchMarker() -
ArraySearchMarker
-
-
Method Details
-
getP
-
setP
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
findMarker
Finds a marker for the given index in an AbstractType.- Parameters:
yArray- The abstract type to search.index- The index to find the marker for.- Returns:
- The found marker or null.
-
updateMarkerChanges
Updates markers when a change happens.- Parameters:
searchMarker- The list of search markers.index- The index where the change occurs.len- The length of the change.
-