public class SimpleAttributesEntry extends AbstractList<String> implements Attributes.Entry
Attributes.Entry which can be used by implementations of Attributes.  Operations
 are implemented in terms of methods on Attributes which do not rely upon entries.modCount| Constructor and Description | 
|---|
| SimpleAttributesEntry(Attributes attributes,
                     String key)Construct a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(int index,
   String element) | 
| boolean | add(String s) | 
| void | clear() | 
| boolean | contains(Object o) | 
| String | get(int index) | 
| String | getKey()Get the mapping key. | 
| int | indexOf(Object o) | 
| boolean | isEmpty() | 
| int | lastIndexOf(Object o) | 
| String | remove(int index) | 
| boolean | remove(Object o) | 
| void | removeRange(int fromIndex,
           int toIndex)Remove all the values for the given key between the  fromindex (inclusive) and thetoindex
 (exclusive). | 
| String | set(int index,
   String element) | 
| int | size() | 
addAll, equals, hashCode, iterator, listIterator, listIterator, subListaddAll, containsAll, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoraddAll, addAll, containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, replaceAll, retainAll, sort, subList, toArray, toArrayparallelStream, removeIf, streampublic SimpleAttributesEntry(Attributes attributes, String key)
attributes - the backing attributes collectionkey - the key of this entrypublic String getKey()
Attributes.EntrygetKey in interface Attributes.Entrypublic void removeRange(int fromIndex,
                        int toIndex)
Attributes.Entryfrom index (inclusive) and the to index
 (exclusive).removeRange in interface Attributes.EntryremoveRange in class AbstractList<String>fromIndex - the start index (inclusive)toIndex - the end index (exclusive)public String get(int index)
public void add(int index,
                String element)
public String remove(int index)
public boolean add(String s)
add in interface Collection<String>add in interface List<String>add in class AbstractList<String>public void clear()
clear in interface Collection<String>clear in interface List<String>clear in class AbstractList<String>public boolean remove(Object o)
remove in interface Collection<String>remove in interface List<String>remove in class AbstractCollection<String>public boolean contains(Object o)
contains in interface Collection<String>contains in interface List<String>contains in class AbstractCollection<String>public boolean isEmpty()
isEmpty in interface Collection<String>isEmpty in interface List<String>isEmpty in class AbstractCollection<String>public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<String>lastIndexOf in class AbstractList<String>public int size()
size in interface Collection<String>size in interface List<String>size in class AbstractCollection<String>Copyright © 2017 JBoss by Red Hat. All rights reserved.