| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new search result reference using the provided |
| | | * continuation reference URI. |
| | | * |
| | | * Creates a new search result reference using the provided continuation |
| | | * reference URI. |
| | | * |
| | | * @param uri |
| | | * The first continuation reference URI to be added to this |
| | | * search result reference. |
| | | * The first continuation reference URI to be added to this search |
| | | * result reference. |
| | | * @throws NullPointerException |
| | | * If {@code uri} was {@code null}. |
| | | */ |
| | | SearchResultReferenceImpl(String uri) throws NullPointerException |
| | | SearchResultReferenceImpl(final String uri) throws NullPointerException |
| | | { |
| | | addURI(uri); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public SearchResultReference addURI(String uri) |
| | | public SearchResultReference addURI(final String uri) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(uri); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public SearchResultReference clearURIs() |
| | | throws UnsupportedOperationException |
| | | { |
| | | uris.clear(); |
| | | return this; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public int getURICount() |
| | | { |
| | | return uris.size(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Iterable<String> getURIs() |
| | | public List<String> getURIs() |
| | | { |
| | | return uris; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean hasURIs() |
| | | { |
| | | return !uris.isEmpty(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public String toString() |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | SearchResultReference getThis() |
| | | { |
| | | return this; |