public abstract class AbstractDirectory extends Object implements Directory
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDirectory(Collection<? extends Entry> entries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Entry entry) |
protected void |
assertMutable()
Throws
UnsupportedOperationException if this directory is read-only. |
boolean |
equals(Object pOther) |
Entry |
getEntryByFieldName(String fieldName) |
Entry |
getEntryById(Object identifier) |
int |
hashCode() |
boolean |
isReadOnly()
This implementation returns
true. |
Iterator<Entry> |
iterator() |
boolean |
remove(Object entry) |
int |
size() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected AbstractDirectory(Collection<? extends Entry> entries)
public Entry getEntryById(Object identifier)
getEntryById in interface Directorypublic Entry getEntryByFieldName(String fieldName)
getEntryByFieldName in interface Directoryprotected final void assertMutable()
UnsupportedOperationException if this directory is read-only.UnsupportedOperationException - if this directory is read-only.isReadOnly()public boolean isReadOnly()
true.
Subclasses should override this method, if the directory is mutable.isReadOnly in interface DirectorytrueCopyright © 2023. All rights reserved.