A C D E G I N O T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- apply(Iterable<T>, NaturalKey<T, K>) - Method in class uk.megaslice.delta.Delta
-
Applies this delta's inserts, updates and deletes to another dataset.
- apply(Map<K, T>) - Method in class uk.megaslice.delta.Delta
-
Applies this delta's inserts, updates and deletes to another dataset.
- asEquivalence() - Method in interface uk.megaslice.delta.Essence
-
Returns an
Equivalencefunction derived from this instance, using default equivalence for the distilled items. - asEquivalence(Equivalence<U>) - Method in interface uk.megaslice.delta.Essence
-
Returns an
Equivalencefunction derived from this instance.
C
- combine(Delta<T, K>) - Method in class uk.megaslice.delta.Delta
-
Combines this delta with another delta, using a default item equivalence function.
- combine(Delta<T, K>, Equivalence<T>) - Method in class uk.megaslice.delta.Delta
-
Combines this delta with another delta.
- combine(Delta<T, K>, Essence<T, U>) - Method in class uk.megaslice.delta.Delta
-
Combines this delta with another delta, using an
Essencefunction to distill items for comparison. - combine(Operation<T>) - Method in class uk.megaslice.delta.Operation
-
Combines this operation with another operation, using a default item equivalence function.
- combine(Operation<T>, Equivalence<T>) - Method in class uk.megaslice.delta.Operation
-
Combines this operation with another operation.
D
- defaultEquivalence() - Static method in interface uk.megaslice.delta.Equivalence
-
Returns a default item equivalence function using
Object.equals(java.lang.Object) - delete(T) - Static method in class uk.megaslice.delta.Operation
-
Creates a delete operation for a given item.
- DELETE - uk.megaslice.delta.Operation.Type
-
Indicates a delete operation.
- deletedItems() - Method in class uk.megaslice.delta.Delta
-
Returns the deleted items of this delta.
- deletes() - Method in class uk.megaslice.delta.Delta
-
Returns the delete operations of this delta.
- Delta<T,K> - Class in uk.megaslice.delta
-
Represents changes to a dataset in terms of insert, update and delete operations.
- diff(Iterable<T>, Iterable<T>, NaturalKey<T, K>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets, using a default item equivalence function.
- diff(Iterable<T>, Iterable<T>, NaturalKey<T, K>, Equivalence<T>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets.
- diff(Iterable<T>, Iterable<T>, NaturalKey<T, K>, Essence<T, U>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets, using an
Essencefunction to distill items for comparison. - diff(Map<K, T>, Map<K, T>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets, using a default item equivalence function.
- diff(Map<K, T>, Map<K, T>, Equivalence<T>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets.
- diff(Map<K, T>, Map<K, T>, Essence<T, U>) - Static method in class uk.megaslice.delta.Delta
-
Creates a delta from two datasets, using an
Essencefunction to distill items for comparison. - distill(T) - Method in interface uk.megaslice.delta.Essence
-
Return a distilled item for equivalence comparisons.
- DuplicateKeyException - Exception in uk.megaslice.delta
-
RuntimeExceptionthrown when a dataset contains multiple items with the same natural key, or when a delta contains an insert operation that would result in a duplicate key when applied.
E
- empty() - Static method in class uk.megaslice.delta.Delta
-
Returns an empty delta.
- Equivalence<T> - Interface in uk.megaslice.delta
-
A function to determine whether two dataset items are equivalent.
- Essence<T,U> - Interface in uk.megaslice.delta
-
A function to distill an item down to its essential features for equivalence comparisons.
G
- get(K) - Method in class uk.megaslice.delta.Delta
-
Retrieves an operation by the natural key of an item in the dataset.
- getMessage() - Method in exception uk.megaslice.delta.InvalidCombination
- getNaturalKey(T) - Method in interface uk.megaslice.delta.NaturalKey
-
Returns a natural key for the given dataset item.
I
- insert(T) - Static method in class uk.megaslice.delta.Operation
-
Creates an insert operation for a given item.
- INSERT - uk.megaslice.delta.Operation.Type
-
Indicates an insert operation.
- insertedItems() - Method in class uk.megaslice.delta.Delta
-
Returns the inserted items of this delta.
- inserts() - Method in class uk.megaslice.delta.Delta
-
Returns the insert operations of this delta.
- InvalidCombination - Exception in uk.megaslice.delta
-
RuntimeExceptionthrown when there is an attempt to combine operations that cannot be combined. - isEmpty() - Method in class uk.megaslice.delta.Delta
-
Indicates whether this delta is empty.
- isEquivalent(T, T) - Method in interface uk.megaslice.delta.Equivalence
-
Returns true if two given dataset items are equivalent, false otherwise.
N
- NaturalKey<T,K> - Interface in uk.megaslice.delta
-
A function to derive a natural key for a given dataset item.
- newItem() - Method in class uk.megaslice.delta.Operation
-
Returns the current value of the item affected by this operation.
O
- oldItem() - Method in class uk.megaslice.delta.Operation
-
Returns the previous value of the item affected by this operation.
- Operation<T> - Class in uk.megaslice.delta
-
An insert, delete or update operation.
- Operation.Type - Enum in uk.megaslice.delta
-
The type of an operation: insert, update or delete.
- operations() - Method in class uk.megaslice.delta.Delta
-
Returns the insert, update and delete operations of this delta.
T
U
- uk.megaslice.delta - package uk.megaslice.delta
- update(T, T) - Static method in class uk.megaslice.delta.Operation
-
Creates an update operation for a given item in its before and after states.
- UPDATE - uk.megaslice.delta.Operation.Type
-
Indicates an update operation.
- updatedItems() - Method in class uk.megaslice.delta.Delta
-
Returns the updated items of this delta.
- updates() - Method in class uk.megaslice.delta.Delta
-
Returns the update operations of this delta.
V
- valueOf(String) - Static method in enum uk.megaslice.delta.Operation.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum uk.megaslice.delta.Operation.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages