AbstractCompoundDirectory
, IFD
public 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, spliterator
protected AbstractDirectory(Collection<? extends Entry> entries)
public Entry getEntryById(Object identifier)
getEntryById
in interface Directory
public Entry getEntryByFieldName(String fieldName)
getEntryByFieldName
in interface Directory
protected 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 Directory
true
Copyright © 2018. All rights reserved.