@Test public void testImmutableEntryList2() { SimpleImmutableEntry<String, String> entry = new SimpleImmutableEntry<>( "key", "value" ); List<SimpleImmutableEntry<String, String>> collection = Arrays.asList( entry ); EntryList<String, String> list = new ImmutableEntryList<>( collection ); Assert.assertEquals( 1, list.size() ); }
public int size() { return this.entries.size(); }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public int size() { return this.entries.size(); } }
EntryList implements Iterable<SimpleImmutableEntry<K, V>> { public int size() { return this.entries.size(); } 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 int size() { return this.entries.size(); } 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 int size() { return this.entries.size(); } 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 );  }