Package one.microstream.equality
Interface Equalator<T>
-
- All Known Subinterfaces:
HashEqualator<T>
,HashEqualator.IdentityHashEqualator<E>
,HashEqualator.ImmutableHashEqualator<E>
,HashEqualator.ImmutableValueTypeHashEqualator<E>
,HashEqualator.ValueTypeHashEqualator<E>
,IdentityEqualator<E>
,ValueTypeEqualator<E>
- All Known Implementing Classes:
Equalator.ComparatorWrapper
,Equalator.Sequence
,PersistenceTypeDescriptionMember.IdentityHashEqualator
,TypePair.HashEquality
public interface Equalator<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Equalator.ComparatorWrapper<T>
static interface
Equalator.Provider<T>
static class
Equalator.Sequence<T>
Useful for implementing SQL-like "GROUP BY" for collections.
-
Method Summary
Modifier and Type Method Description static <E> Equalator<E>
Chain(Equalator<? super E>... equalators)
boolean
equal(T object1, T object2)
static <E> Equalator<E>
identity()
default Predicate<T>
sample(T sample)
static <E> Equalator<E>
value()
static <E> Equalator<E>
Wrap(Comparator<? super E> comparator)
-
-
-
Method Detail
-
Wrap
static <E> Equalator<E> Wrap(Comparator<? super E> comparator)
-
Chain
@SafeVarargs static <E> Equalator<E> Chain(Equalator<? super E>... equalators)
-
value
static <E> Equalator<E> value()
-
identity
static <E> Equalator<E> identity()
-
-