Interface NoLambda

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  NoLambda.EqualityBasedOnSerialization
      An implementation of NoLambda in which equality is based on the serialized representation of itself.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] toBytes()
      Returns a byte array representation of everything inside this SerializableFileFilter.
    • Method Detail

      • toBytes

        byte[] toBytes()
        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.)