Class Structs

java.lang.Object
arc.util.Structs
com.xpdustry.claj.common.util.Structs

public class Structs extends arc.util.Structs
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T[]
    insert(T[] array, int index, T item)
     
    static <T> Iterable<T>
    iterable(T... array)
     
    static <T,R> R[]
    map(T[] array, Class<R> type, arc.func.Func<T,R> mapper)
     
    static <T> int
    max(Iterable<T> array, arc.func.Intf<T> intifier)
     
    static <T> int
    max(T[] array, arc.func.Intf<T> intifier)
     
    static <T> int
    min(Iterable<T> array, arc.func.Intf<T> intifier)
     
    static <T> int
    min(T[] array, arc.func.Intf<T> intifier)
     

    Methods inherited from class arc.util.Structs

    add, arr, comparing, comparing, comparingBool, comparingFloat, comparingInt, comparingLong, comps, contains, contains, count, each, eq, filter, filter, filter, find, findMin, findMin, findMin, findMin, forEach, inBounds, inBounds, inBounds, inBounds, inBounds, inBounds, inBounds, inBounds, indexOf, indexOf, indexOf, random, random, remove, remove, swap

    Methods inherited from class Object

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

    • Structs

      public Structs()
  • Method Details

    • insert

      public static <T> T[] insert(T[] array, int index, T item)
    • map

      public static <T,R> R[] map(T[] array, Class<R> type, arc.func.Func<T,R> mapper)
    • iterable

      @SafeVarargs public static <T> Iterable<T> iterable(T... array)
    • max

      public static <T> int max(Iterable<T> array, arc.func.Intf<T> intifier)
    • max

      public static <T> int max(T[] array, arc.func.Intf<T> intifier)
    • min

      public static <T> int min(Iterable<T> array, arc.func.Intf<T> intifier)
    • min

      public static <T> int min(T[] array, arc.func.Intf<T> intifier)