Package io.keikai.doc.collab.types
Class ArraySearchMarker
- java.lang.Object
-
- io.keikai.doc.collab.types.ArraySearchMarker
-
public class ArraySearchMarker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intglobalSearchMarkerTimestampA unique timestamp that identifies each marker.static intMAX_SEARCH_MARKER
-
Constructor Summary
Constructors Constructor Description ArraySearchMarker()ArraySearchMarker(Item p, int index)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArraySearchMarkerfindMarker(AbstractType yArray, int index)Finds a marker for the given index in an AbstractType.intgetIndex()ItemgetP()voidsetIndex(int index)voidsetP(Item p)static voidupdateMarkerChanges(java.util.List<ArraySearchMarker> searchMarker, int index, int len)Updates markers when a change happens.
-
-
-
Field Detail
-
MAX_SEARCH_MARKER
public static final int MAX_SEARCH_MARKER
- See Also:
- Constant Field Values
-
globalSearchMarkerTimestamp
public static int globalSearchMarkerTimestamp
A unique timestamp that identifies each marker. Time is relative, this is more like an ever-increasing clock.
-
-
Constructor Detail
-
ArraySearchMarker
public ArraySearchMarker()
-
ArraySearchMarker
public ArraySearchMarker(Item p, int index)
-
-
Method Detail
-
getP
public Item getP()
-
setP
public void setP(Item p)
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
findMarker
public static ArraySearchMarker findMarker(AbstractType yArray, int index)
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
public static void updateMarkerChanges(java.util.List<ArraySearchMarker> searchMarker, int index, int len)
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.
-
-