public class ReferenceList extends WrapperList<Reference>
| Constructor and Description |
|---|
ReferenceList()
Constructor.
|
ReferenceList(int initialCapacity)
Constructor.
|
ReferenceList(List<Reference> delegate)
Constructor.
|
ReferenceList(Representation uriList)
Constructor from a "text/uri-list" representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(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(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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic ReferenceList()
public ReferenceList(int initialCapacity)
initialCapacity - The initial list capacity.public ReferenceList(List<Reference> delegate)
delegate - The delegate list.public ReferenceList(Representation uriList) throws IOException
uriList - The "text/uri-list" representation to parse.IOExceptionpublic boolean add(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(String identifier)
identifier - The list identifier as a URI.public ReferenceList subList(int fromIndex, int toIndex)
Copyright © 2005–2025. All rights reserved.