public abstract class AbstractDirectory extends java.lang.Object implements Directory
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDirectory(java.util.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(java.lang.Object pOther) |
Entry |
getEntryByFieldName(java.lang.String fieldName) |
Entry |
getEntryById(java.lang.Object identifier) |
int |
hashCode() |
boolean |
isReadOnly()
This implementation returns
true. |
java.util.Iterator<Entry> |
iterator() |
boolean |
remove(java.lang.Object entry) |
int |
size() |
java.lang.String |
toString() |
protected AbstractDirectory(java.util.Collection<? extends Entry> entries)
public Entry getEntryById(java.lang.Object identifier)
getEntryById in interface Directorypublic Entry getEntryByFieldName(java.lang.String fieldName)
getEntryByFieldName in interface Directorypublic java.util.Iterator<Entry> iterator()
iterator in interface java.lang.Iterable<Entry>protected final void assertMutable()
UnsupportedOperationException if this directory is read-only.java.lang.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 Directorytruepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object pOther)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.