Note
purposefully equals compares the offset only and will equal an integer of the same value to allow use of TrackedOffset as a key but lookup to be done by offset
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private final int | |
| private int | |
| private boolean | |
| private final int | |
| private final @Nullable TrackedOffset | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(@NotNull TrackedOffset
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public int | compareTo(@NotNull Integer
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public int | compareTo(int
the object to be compared. offset)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public @NotNull TrackedOffset | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public static TrackedOffset | |
| public static TrackedOffset | |
| public static TrackedOffset | |
| public static TrackedOffset | |
| public @NotNull TrackedOffset |
| F_AFTER_DELETE | back to summary |
|---|---|
| private static final int F_AFTER_DELETE | |
| F_AFTER_INSERT | back to summary |
|---|---|
| private static final int F_AFTER_INSERT | |
| F_AFTER_SPACE_EDIT | back to summary |
|---|---|
| private static final int F_AFTER_SPACE_EDIT | |
| flags | back to summary |
|---|---|
| private final int flags | |
| index | back to summary |
|---|---|
| private int index | |
| isSpliced | back to summary |
|---|---|
| private boolean isSpliced | |
| offset | back to summary |
|---|---|
| private final int offset | |
| original | back to summary |
|---|---|
| private final @Nullable TrackedOffset original
| |
| spacesAfter | back to summary |
|---|---|
| private int spacesAfter | |
| spacesBefore | back to summary |
|---|---|
| private int spacesBefore | |
| TrackedOffset | back to summary |
|---|---|
| private TrackedOffset(int offset, boolean afterSpaceEdit, boolean afterInsert, boolean afterDelete) | |
| TrackedOffset | back to summary |
|---|---|
| private TrackedOffset(@NotNull TrackedOffset other) | |
| TrackedOffset | back to summary |
|---|---|
| private TrackedOffset(@NotNull TrackedOffset other, int offset) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(@NotNull TrackedOffset o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(@NotNull Integer o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| compareTo | back to summary |
|---|---|
| public int compareTo(int offset) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| getOffset | back to summary |
|---|---|
| public int getOffset() | |
| getSpacesAfter | back to summary |
|---|---|
| public int getSpacesAfter() | |
| getSpacesBefore | back to summary |
|---|---|
| public int getSpacesBefore() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAfterDelete | back to summary |
|---|---|
| public boolean isAfterDelete() | |
| isAfterInsert | back to summary |
|---|---|
| public boolean isAfterInsert() | |
| isAfterSpaceEdit | back to summary |
|---|---|
| public boolean isAfterSpaceEdit() | |
| isResolved | back to summary |
|---|---|
| public boolean isResolved() | |
| isSpliced | back to summary |
|---|---|
| public boolean isSpliced() | |
| plusOffsetDelta | back to summary |
|---|---|
public @NotNull TrackedOffset plusOffsetDelta(int delta)
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) | |
| setSpacesAfter | back to summary |
|---|---|
| public void setSpacesAfter(int spacesAfter) | |
| setSpacesBefore | back to summary |
|---|---|
| public void setSpacesBefore(int spacesBefore) | |
| setSpliced | back to summary |
|---|---|
| public void setSpliced(boolean spliced) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| track | back to summary |
|---|---|
| public static TrackedOffset track(@NotNull TrackedOffset other) | |
| track | back to summary |
|---|---|
| public static TrackedOffset track(int offset) | |
| track | back to summary |
|---|---|
public static TrackedOffset track(int offset, @Nullable Character c, boolean afterDelete)
| |
| track | back to summary |
|---|---|
| public static TrackedOffset track(int offset, boolean afterSpaceEdit, boolean afterInsert, boolean afterDelete) | |
| withOffset | back to summary |
|---|---|
public @NotNull TrackedOffset withOffset(int offset)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TrackedOffset. | |
| public static final TrackedOffset. | |
| public static final TrackedOffset. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TrackedOffset. | |
| public static TrackedOffset. |
| AFTER_DELETE | back to summary |
|---|---|
| public static final TrackedOffset. | |
| AFTER_INSERT | back to summary |
|---|---|
| public static final TrackedOffset. | |
| AFTER_SPACE_EDIT | back to summary |
|---|---|
| public static final TrackedOffset. | |
| Flags | back to summary |
|---|---|
| private Flags() | |
| valueOf | back to summary |
|---|---|
| public static TrackedOffset. | |
| values | back to summary |
|---|---|
| public static TrackedOffset. | |