com.twelvemonkeys.imageio.metadata
Class AbstractDirectory
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractDirectory
- All Implemented Interfaces:
- Directory, Iterable<Entry>
- Direct Known Subclasses:
- AbstractCompoundDirectory
public abstract class AbstractDirectory
- extends Object
- implements Directory
AbstractDirectory
- Version:
- $Id: AbstractDirectory.java,v 1.0 Nov 11, 2009 5:31:04 PM haraldk Exp$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
AbstractDirectory
protected AbstractDirectory(Collection<? extends Entry> entries)
getEntryById
public Entry getEntryById(Object identifier)
- Specified by:
getEntryById in interface Directory
getEntryByFieldName
public Entry getEntryByFieldName(String fieldName)
- Specified by:
getEntryByFieldName in interface Directory
iterator
public Iterator<Entry> iterator()
- Specified by:
iterator in interface Iterable<Entry>
assertMutable
protected final void assertMutable()
- Throws
UnsupportedOperationException if this directory is read-only.
- Throws:
UnsupportedOperationException - if this directory is read-only.- See Also:
isReadOnly()
add
public boolean add(Entry entry)
- Specified by:
add in interface Directory
remove
public boolean remove(Object entry)
- Specified by:
remove in interface Directory
size
public int size()
- Specified by:
size in interface Directory
isReadOnly
public boolean isReadOnly()
- This implementation returns
true.
Subclasses should override this method, if the directory is mutable.
- Specified by:
isReadOnly in interface Directory
- Returns:
true
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object pOther)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2015. All Rights Reserved.