Class LazyForwardingEquality<T extends Serializable>

    • Constructor Detail

      • LazyForwardingEquality

        public LazyForwardingEquality()
    • Method Detail

      • calculateState

        protected abstract T calculateState()
                                     throws Exception
        This function is guaranteed to be called at most once. If the state is never required, then it will never be called at all. Throws exception because it's likely that there will be some IO going on.
        Throws:
        Exception
      • state

        protected final T state()
        Returns the underlying state, possibly triggering a call to {calculateState().
      • toBytes

        public byte[] toBytes()
        Description copied from interface: NoLambda
        Returns 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.)
        Specified by:
        toBytes in interface NoLambda
      • equals

        public final boolean equals​(Object other)
        Overrides:
        equals in class Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object