AbstractCompoundDirectory, IFDpublic abstract class AbstractDirectory extends Object implements Directory
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractDirectory(Collection<? extends Entry> entries) |
| Modifier and Type | Method | 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() |
forEach, 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 © 2018. All rights reserved.