@Test public void sort() { final char[] array = "weoriAFQErqqöp".toCharArray(); final CharStore store = CharStore.of(array); store.sort(0, array.length, null); Assert.assertEquals(new String(array), "AEFQeiopqqrrwö"); }
@Override public void sort( final int from, final int until, final Comparator<? super Character> comparator ) { if (comparator == null) { Arrays.sort(array, from, until); } else { final Character[] chars = new Character[array.length]; for (int i = 0; i < array.length; ++i) { chars[i] = array[i]; } Arrays.sort(chars, from, until, comparator); for (int i = 0; i < array.length; ++i) { array[i] = chars[i]; } } }
CharStore implements Array.Store<Character>, Serializable { @Override public void sort( final int from, final int until, final Comparator<? super Character> comparator ) { if (comparator == null) { Arrays.sort(array, from, until); } else { final Character[] chars = new Character[array.length]; for (int i = 0; i < array.length; ++i) { chars[i] = array[i]; } Arrays.sort(chars, from, until, comparator); for (int i = 0; i < array.length; ++i) { array[i] = chars[i]; } } } }
CharStore implements Array.Store<Character>, Serializable { @Override public void sort( final int from, final int until, final Comparator<? super Character> comparator ) { if (comparator == null) { Arrays.sort(array, from, until); } else { final Character[] chars = new Character[array.length]; for (int i = 0; i < array.length; ++i) { chars[i] = array[i]; } Arrays.sort(chars, from, until, comparator); for (int i = 0; i < array.length; ++i) { array[i] = chars[i]; } } } private  CharStore(final char[] chars);  CharStore(final int length); }
CharStore implements Array.Store<Character>, Serializable { @Override public void sort( final int from, final int until, final Comparator<? super Character> comparator ) { if (comparator == null) { Arrays.sort(array, from, until); } else { final Character[] chars = new Character[array.length]; for (int i = 0; i < array.length; ++i) { chars[i] = array[i]; } Arrays.sort(chars, from, until, comparator); for (int i = 0; i < array.length; ++i) { array[i] = chars[i]; } } } private  CharStore(final char[] chars);  CharStore(final int length); @Override Character get(final int index); @Override void sort(
		final int from,
		final int until,
		final Comparator<? super Character> comparator
	); @Override void set(final int index, final Character value); @Override CharStore copy(final int from, final int until); @Override CharStore newInstance(final int length); @Override int length(); static CharStore of(final char[] chars); }
CharStore implements Array.Store<Character>, Serializable { @Override public void sort( final int from, final int until, final Comparator<? super Character> comparator ) { if (comparator == null) { Arrays.sort(array, from, until); } else { final Character[] chars = new Character[array.length]; for (int i = 0; i < array.length; ++i) { chars[i] = array[i]; } Arrays.sort(chars, from, until, comparator); for (int i = 0; i < array.length; ++i) { array[i] = chars[i]; } } } private  CharStore(final char[] chars);  CharStore(final int length); @Override Character get(final int index); @Override void sort(
		final int from,
		final int until,
		final Comparator<? super Character> comparator
	); @Override void set(final int index, final Character value); @Override CharStore copy(final int from, final int until); @Override CharStore newInstance(final int length); @Override int length(); static CharStore of(final char[] chars); final char[] array; }