de.caff.generics.function

## Interface DoubleOrdering.Serial

- All Superinterfaces:
    DoubleOrdering, FloatOrdering, java.io.Serializable
  Enclosing interface:
    DoubleOrdering

      public static interface DoubleOrdering.Serial
      extends DoubleOrdering, java.io.Serializable

  A double ordering which is serializable. It is a recommendation that comparators implement `java.io.Serializable` to allow serializing `TreeMap`s and similar. If an Ordering is expected to be used as a comparator in such areas implement either this interface, or for lambdas use a cast to force the compiler to make the order serializable:

         return (ByteOrdering & Serializable) (v1, v2) -> v1.compareTo(v2);

  You can also use a `(ByteOrdering.Serial)` cast to save a bit of typing, but the above is a nice trick to have in your toolbox.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface de.caff.generics.function.DoubleOrdering

      `DoubleOrdering.Serial`

  - ### Field Summary

    - ### Fields inherited from interface de.caff.generics.function.DoubleOrdering

      `NATURAL_ASCENDING, NATURAL_DESCENDING, STANDARD_ASCENDING, STANDARD_DESCENDING`

  - ### Method Summary

    - ### Methods inherited from interface de.caff.generics.function.DoubleOrdering

      `ascending, ascendingOrSame, asDoubleComparator, asDoubleOrdering, asNumberComparator, asNumberOrdering, checkDouble, checkFloat, descending, descendingOrSame, different, fromComparator, inverse, same`

    - ### Methods inherited from interface de.caff.generics.function.FloatOrdering

      `ascending, ascendingOrSame, asFloatComparator, asFloatOrdering, descending, descendingOrSame, different, fromComparator, same`