public abstract static class NoLambda.EqualityBasedOnSerialization extends java.lang.Object implements NoLambda
An implementation of NoLambda in which equality is based on the serialized representation of itself.
NoLambda.EqualityBasedOnSerialization| Constructor and Description |
|---|
EqualityBasedOnSerialization() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherObj) |
int |
hashCode() |
byte[] |
toBytes()
Returns a byte array representation of everything inside this
SerializableFileFilter. |
public byte[] toBytes()
NoLambdaReturns a byte array representation of everything inside this SerializableFileFilter.
The main purpose of this method is to ensure one can’t instantiate this class with lambda
expressions, which are notoriously difficult to serialize and deserialize properly. (See
SerializableFileFilterImpl.SkipFilesNamed for an example of how to make a serializable
subclass.)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object otherObj)
equals in class java.lang.Object