Interface Lens<A,​B>

  • All Superinterfaces:
    Getter<A,​B>, Setter<A,​B>

    public interface Lens<A,​B>
    extends Setter<A,​B>, Getter<A,​B>
    • Method Detail

      • create

        static <A,​B> Lens<A,​B> create​(Getter<A,​B> get,
                                                  Setter<A,​B> set)
      • identity

        static <A> Lens<A,​A> identity()
      • cast

        static <A,​B> Lens<A,​B> cast()
      • transform

        A transform​(A a,
                    java.util.function.Function<B,​B> fn)
      • andThen

        <C> Lens<A,​C> andThen​(Lens<B,​C> lens)