Object Arrays

  • All Implemented Interfaces:

    
    public class Arrays
    
                        

    Container object for utility functions related to Arrays.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

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

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <P extends Position<P>> List<P> toPositions(Array<out Number> $self, Environment<?, P> environment) Converts an array of numbers representing positions to an actual list of positions.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • toPositions

         final static <P extends Position<P>> List<P> toPositions(Array<out Number> $self, Environment<?, P> environment)

        Converts an array of numbers representing positions to an actual list of positions. E.g. the array 2,3,4,5 in a bidimensional environment would be transformed into a list containing positions (2,3) and (4,5).