Class DiffBuilder.SDiff<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Pair<T,​T>>, java.util.Map.Entry<T,​T>
    Enclosing class:
    DiffBuilder<T>

    private static final class DiffBuilder.SDiff<T>
    extends Diff<T>
    • Field Detail

      • leftSupplier

        private final transient java.util.function.Supplier<T> leftSupplier
      • rightSupplier

        private final transient java.util.function.Supplier<T> rightSupplier
    • Constructor Detail

      • SDiff

        private SDiff​(java.lang.String fieldName,
                      java.util.function.Supplier<T> leftSupplier,
                      java.util.function.Supplier<T> rightSupplier,
                      java.lang.Class<T> type)
    • Method Detail

      • getLeft

        public T getLeft()
        Description copied from class: Pair
        Gets the left element from this pair.

        When treated as a key-value pair, this is the key.

        Specified by:
        getLeft in class Pair<T,​T>
        Returns:
        the left element, may be null
      • getRight

        public T getRight()
        Description copied from class: Pair
        Gets the right element from this pair.

        When treated as a key-value pair, this is the value.

        Specified by:
        getRight in class Pair<T,​T>
        Returns:
        the right element, may be null