@Test( expected = UnsupportedOperationException.class ) public void testImmutableEntryListSort() { EntryList<String, String> oldList = new EntryList<>(); EntryList<String, String> list = new ImmutableEntryList<>( oldList ); list.sort( null ); Assert.fail( "previous method should have thrown an exception" ); }
public void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ) { Collections.sort( this.entries, c ); }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ) { Collections.sort( this.entries, c ); } }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ) { Collections.sort( this.entries, c ); } EntryList();  EntryList( final int initialCapacity );  EntryList( final Collection<? extends SimpleImmutableEntry<K, V>> c );  EntryList( final EntryList<K, V> entryList ); }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ) { Collections.sort( this.entries, c ); } EntryList();  EntryList( final int initialCapacity );  EntryList( final Collection<? extends SimpleImmutableEntry<K, V>> c );  EntryList( final EntryList<K, V> entryList ); void addEntry( final K key, final V value ); int size(); void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ); @Override Iterator<SimpleImmutableEntry<K, V>> iterator(); static Comparator<SimpleImmutableEntry<String, ?>> getStringComparator( final Comparator<String> comparator ); }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ) { Collections.sort( this.entries, c ); } EntryList();  EntryList( final int initialCapacity );  EntryList( final Collection<? extends SimpleImmutableEntry<K, V>> c );  EntryList( final EntryList<K, V> entryList ); void addEntry( final K key, final V value ); int size(); void sort( final Comparator<? super SimpleImmutableEntry<K, V>> c ); @Override Iterator<SimpleImmutableEntry<K, V>> iterator(); static Comparator<SimpleImmutableEntry<String, ?>> getStringComparator( final Comparator<String> comparator );  }