Class UnPaired<Left,​Right,​Result>

  • All Implemented Interfaces:
    org.dmfs.jems2.FragileFunction<org.dmfs.jems2.Pair<Left,​Right>,​Result,​java.lang.RuntimeException>, org.dmfs.jems2.Function<org.dmfs.jems2.Pair<Left,​Right>,​Result>, org.dmfs.jems2.ThrowingFunction<org.dmfs.jems2.Pair<Left,​Right>,​Result>

    public final class UnPaired<Left,​Right,​Result>
    extends java.lang.Object
    implements org.dmfs.jems2.Function<org.dmfs.jems2.Pair<Left,​Right>,​Result>
    Un-pairs the Pair argument of a function.

    TODO: move to jems.

    • Constructor Summary

      Constructors 
      Constructor Description
      UnPaired​(org.dmfs.jems2.BiFunction<? super Left,​? super Right,​? extends Result> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Result value​(org.dmfs.jems2.Pair<Left,​Right> pair)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnPaired

        public UnPaired​(org.dmfs.jems2.BiFunction<? super Left,​? super Right,​? extends Result> delegate)
    • Method Detail

      • value

        public Result value​(org.dmfs.jems2.Pair<Left,​Right> pair)
        Specified by:
        value in interface org.dmfs.jems2.FragileFunction<Left,​Right,​Result>
        Specified by:
        value in interface org.dmfs.jems2.Function<Left,​Right>
        Specified by:
        value in interface org.dmfs.jems2.ThrowingFunction<Left,​Right>