Package org.mantoux.delta
Class Delta
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Op>,Collection<Op>,List<Op>,RandomAccess,SequencedCollection<Op>
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchop()delete(int length) voideachLine(BiFunction<Delta, AttributeMap, Boolean> applyFunction) voideachLine(BiFunction<Delta, AttributeMap, Boolean> predicate, String newLine) insert(Object arg, AttributeMap attributes) iterator()intlength()<T> List<T> <T> Treduce(T initialValue, BiFunction<T, Op, T> accumulator) retain(int length) retain(int length, AttributeMap attributes) slice(int start) slice(int start, int end) toString()Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
Delta
-
Delta
public Delta()
-
-
Method Details
-
iterator
-
filter
-
insert
-
insert
-
insert
-
delete
-
retain
-
retain
-
push
-
chop
-
map
-
partition
-
reduce
-
changeLength
public int changeLength() -
length
public int length() -
slice
-
compose
-
eachLine
-
eachLine
-
invert
-
slice
-
concat
-
plainText
-
toString
- Overrides:
toStringin classAbstractCollection<Op>
-