Class CharArray

All Implemented Interfaces:
Array<Character>, PrimitiveArray<Character>

public final class CharArray extends PrimitiveArrayBase<Character>
A CharType array.
  • Method Details

    • empty

      public static CharArray empty()
    • of

      public static CharArray of(char... values)
    • of

      public static CharArray of(Character... values)
    • of

      public static CharArray of(Iterable<Character> values)
    • of

      public static CharArray of(Collection<Character> values)
    • ofUnsafe

      public static CharArray ofUnsafe(char... values)
    • builder

      public static CharArray.Builder builder(int initialSize)
    • values

      public final char[] values()
      The raw chars. Must not be modified.
      Returns:
      the chars, do not modify
    • value

      public Character value(int index)
      Returns:
      the boxed value at index
    • isNull

      public boolean isNull(int index)
      Returns:
      whether the value at index is null
    • size

      public final int size()
    • componentType

      public final CharType componentType()
    • walk

      public final <R> R walk(PrimitiveArray.Visitor<R> visitor)
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object