public void add( char[] vals ) { synchronized( mutex ) { list.add( vals ); } } public void add( char[] vals, int offset, int length ) {
public int binarySearch( char value ) { synchronized( mutex ) { return list.binarySearch( value ); } } public int binarySearch( char value, int fromIndex, int toIndex ) {
public void fill( char val ) { synchronized( mutex ) { list.fill( val ); } } public void fill( int fromIndex, int toIndex, char val ) {
@Override public Character set( int index, Character value ) { char previous_value = list.set( index, value ); if ( previous_value == list.getNoEntryValue() ) return null; else return Character.valueOf( previous_value ); }
@Override public Character get( int index ) { char value = list.get( index ); if ( value == list.getNoEntryValue() ) return null; else return Character.valueOf( value ); }
@Override public Character remove( int index ) { char previous_value = list.removeAt( index ); if ( previous_value == list.getNoEntryValue() ) return null; else return Character.valueOf( previous_value ); }
public void insert( int offset, char value ) { synchronized( mutex ) { list.insert( offset, value ); } } public void insert( int offset, char[] values ) {
public TCharList grep( TCharProcedure condition ) { synchronized( mutex ) { return list.grep( condition ); } } public TCharList inverseGrep( TCharProcedure condition ) {
public int indexOf( char o ) { synchronized( mutex ) { return list.indexOf( o ); } } public int lastIndexOf( char o ) {
public boolean forEachDescending( TCharProcedure procedure ) { return list.forEachDescending( procedure ); }
public TCharList inverseGrep( TCharProcedure condition ) { synchronized( mutex ) { return list.inverseGrep( condition ); } }
public char get( int index ) { synchronized( mutex ) { return list.get( index ); } } public char set( int index, char element) {
public TCharLinkedList(TCharList list) { no_entry_value = list.getNoEntryValue(); // for (TCharIterator iterator = list.iterator(); iterator.hasNext();) { char next = iterator.next(); add(next); } }
@Override public Character get( int index ) { char value = list.get( index ); if ( value == list.getNoEntryValue() ) return null; else return Character.valueOf( value ); }
@Override public Character remove( int index ) { char previous_value = list.removeAt( index ); if ( previous_value == list.getNoEntryValue() ) return null; else return Character.valueOf( previous_value ); }
public void insert( int offset, char[] values ) { synchronized( mutex ) { list.insert( offset, values ); } } public void insert( int offset, char[] values, int valOffset, int len ) {
public TCharList grep( TCharProcedure condition ) { return list.grep( condition ); } public TCharList inverseGrep( TCharProcedure condition ) { return list.inverseGrep( condition ); }
public int indexOf( int offset, char value ) { synchronized( mutex ) { return list.indexOf( offset, value ); } } public int lastIndexOf( int offset, char value ) {
public boolean forEachDescending( TCharProcedure procedure ) { synchronized( mutex ) { return list.forEachDescending( procedure ); } }
public TCharList inverseGrep( TCharProcedure condition ) { return list.inverseGrep( condition ); }