Chr { public static char[] copy( char[] array ) { Exceptions.requireNonNull( array ); char[] newArray = new char[ array.length ]; arraycopy ( array, 0, newArray, 0, array.length ); return newArray; }  static char[] arrayOfChar( final int size ); static char[] array( final char... array ); static char[] chars( final String array ); static int lengthOf( char[] array ); static int len( char[] array ); static char atIndex( final char[] array, final int index ); static char idx( final char[] array, final int index ); static void atIndex( final char[] array, int index, char value ); static void idx( final char[] array, int index, char value ); static void atIndex( final char[] array, int index, char[] input ); static void idx( final char[] array, int index, char[] input ); static char[] sliceOf( char[] array, int startIndex, int endIndex ); static char[] slc( char[] array, int startIndex, int endIndex ); static char[] sliceOf( char[] array, int startIndex ); static char[] slc( char[] array, int startIndex ); static char[] endSliceOf( char[] array, int endIndex ); static char[] slcEnd( char[] array, int endIndex ); static boolean in( char value, char[] array ); static boolean in( char[] values, char[] array ); static boolean in( int value, char[] array ); static boolean in( char value, int offset, char[] array ); static boolean in( char value, int offset, int end, char[] array ); static char[] grow( char[] array, final int size ); static char[] grow( char[] array ); static char[] shrink( char[] array, int size ); static char[] compact( char[] array ); static char[] remove( char c, char[] array ); static char[] remove( char c, char[] array, int start, int to ); static char[][] split( char[] chars ); static char[][] splitLine( char[] chars ); static char[] copy( char[] array ); static char[] copy( char[] array, int offset, int length ); static char[] add( char[] array, char v ); static char[] add( char[] array, String str ); static char[] add( char[] array, StringBuilder stringBuilder ); static char[] add( char[] array, char[] array2 ); static char[] insert( final char[] array, final int idx, final char v ); static char[] insert( final char[] array, final int fromIndex, String values ); static char[] insert( final char[] array, final int fromIndex, StringBuilder values ); static char[] insert( final char[] array, final int fromIndex, final char[] values ); static char[] rpad( final char[] in, final int size, char pad ); static char[] lpad( final char[] in, final int size, char pad ); static char[] underBarCase( char[] in ); static char[] camelCase( char[] in, boolean upper ); static char[][] split( final char[] inputArray,
                                  final char split ); static boolean contains( char[] chars, char c ); static boolean contains( char[] chars, char c, int start, final int length ); static void _idx( char[] buffer, int location, byte[] chars ); static void _idx( final char[] array, int startIndex, char[] input ); static void _idx( final char[] array, int startIndex, char[] input, final int inputLength ); static void _idx( char[] buffer, int location, byte[] chars, int start, int end ); static char[] trim( char[] buffer, int start, int to ); static boolean equals( char[] chars1, char[] chars2 ); static boolean equalsNoNullCheck( char[] chars1, char[] chars2 ); static char[] add( char[]... strings ); static char[][] splitLines(char[] chars); static char[][] splitComma(char[] chars); static void equalsOrDie(char[] ac, char[] bc); static char [] multiply(char c, int len); static boolean insideOf(char[] startsWith, char[] chars, char[] endsWith); static boolean isEmpty(char[] messageBodyChars); static final char[] DEFAULT_SPLIT; static final char[] NEWLINE_CHARS; }
@Test public void copyTest() { assertArrayEquals( array( 'a', 'b', 'c', 'd', 'e' ), copy( array( 'a', 'b', 'c', 'd', 'e' ) ) ); }