Object Anys

  • All Implemented Interfaces:

    
    public class Anys
    
                        

    Collection of extensions that apply to Any object.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Anys INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <E extends Any> Sequence<E> unfold(E $self, Function1<E, Sequence<E>> extractor) The opposite of fold.
      final <T extends Any, P extends Position<P>> P toPosition(T $self, Environment<T, P> environment) Tries to convert a concentration T into a valid position of type P descriptor.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • unfold

         final <E extends Any> Sequence<E> unfold(E $self, Function1<E, Sequence<E>> extractor)

        The opposite of fold.

        Parameters:
        extractor - A function that provides a sequence of elements given a specific element of the same type.
        Returns:

        A sequence of E generated by unfolding on each element provided by the extractor function.