Class CodomainExtraction<Y>

  • Type Parameters:
    Y - the type of the dependent variable (output)of the discrete function
    All Implemented Interfaces:
    java.util.function.Function<DiscreteFunction<?,​Y>,​java.lang.Iterable<Y>>, Conversion<DiscreteFunction<?,​Y>,​java.lang.Iterable<Y>>

    public class CodomainExtraction<Y>
    extends java.lang.Object
    implements Conversion<DiscreteFunction<?,​Y>,​java.lang.Iterable<Y>>
    A conversion that takes a DiscreteFunction and produces an iterable that contains the values of its codomain. See Codomain
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<Y> apply​(DiscreteFunction<?,​Y> inputfunction)
      Has to implement the conversion logic to convert the given object into an object of type R.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • CodomainExtraction

        public CodomainExtraction()
    • Method Detail

      • apply

        public java.lang.Iterable<Y> apply​(DiscreteFunction<?,​Y> inputfunction)
        Description copied from interface: Conversion
        Has to implement the conversion logic to convert the given object into an object of type R.
        Specified by:
        apply in interface Conversion<DiscreteFunction<?,​Y>,​java.lang.Iterable<Y>>
        Specified by:
        apply in interface java.util.function.Function<DiscreteFunction<?,​Y>,​java.lang.Iterable<Y>>
        Parameters:
        inputfunction - the object to convert
        Returns:
        an object of the correct return type.