de.caff.generics.function

## Interface ByteOrdering.Serial

- All Superinterfaces:
    ByteOrdering, java.io.Serializable
  Enclosing interface:
    ByteOrdering

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

  A byte 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.ByteOrdering

      `ByteOrdering.Serial`

  - ### Field Summary

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

      `ASCENDING, DESCENDING, UNSIGNED_ASCENDING, UNSIGNED_DESCENDING`

  - ### Method Summary

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

      `asByteComparator, asByteOrdering, ascending, ascendingOrSame, asNumberComparator, checkByte, descending, descendingOrSame, different, fromComparator, inverse, same`