public class ReferenceList extends WrapperList<Reference>
| Constructor and Description | 
|---|
ReferenceList()
Constructor. 
 | 
ReferenceList(int initialCapacity)
Constructor. 
 | 
ReferenceList(java.util.List<Reference> delegate)
Constructor. 
 | 
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(java.lang.String uri)
Creates then adds a reference at the end of the list. 
 | 
Reference | 
getIdentifier()
Returns the list identifier. 
 | 
Representation | 
getTextRepresentation()
Returns a representation of the list in the "text/uri-list" format. 
 | 
Representation | 
getWebRepresentation()
Returns a representation of the list in "text/html" format. 
 | 
void | 
setIdentifier(Reference identifier)
Sets the list reference. 
 | 
void | 
setIdentifier(java.lang.String identifier)
Sets the list reference. 
 | 
ReferenceList | 
subList(int fromIndex,
       int toIndex)
Returns a view of the portion of this list between the specified
 fromIndex, inclusive, and toIndex, exclusive. 
 | 
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray, toStringpublic ReferenceList()
public ReferenceList(int initialCapacity)
initialCapacity - The initial list capacity.public ReferenceList(java.util.List<Reference> delegate)
delegate - The delegate list.public ReferenceList(Representation uriList) throws java.io.IOException
uriList - The "text/uri-list" representation to parse.java.io.IOExceptionpublic boolean add(java.lang.String uri)
uri - The uri of the reference to add.public Reference getIdentifier()
public Representation getTextRepresentation()
public Representation getWebRepresentation()
public void setIdentifier(Reference identifier)
identifier - The list identifier.public void setIdentifier(java.lang.String identifier)
identifier - The list identifier as a URI.public ReferenceList subList(int fromIndex, int toIndex)
subList in interface java.util.List<Reference>subList in class WrapperList<Reference>fromIndex - The start position.toIndex - The end position (exclusive).Copyright © 2005-2024 Restlet.