public class StringDict
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable, java.lang.Iterable<java.lang.String>
| Constructor and Description |
|---|
StringDict()
Creates a new instance of the StringDict class.
|
StringDict(long handle)
Creates a new instance of the StringDict class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String key,
java.lang.String item)
Adds an item to the StringDict object.
|
void |
clear()
Clears the StringDict object.
|
StringDict |
clone()
Creates a copy of the StringDict object.
|
void |
close()
Releases all resources used by this StringDict.
|
boolean |
containsKey(java.lang.String key)
Determines whether the StringDictobject contains the specified key.
|
protected void |
finalize()
Finalizer for this class.
|
java.lang.String |
get(java.lang.String key)
Gets an item of the StringDict object.
|
int |
getCount()
Gets the number of elements in the StringDict object.
|
long |
getHandle()
Gets the native handle.
|
StringList |
getKeys()
Gets the gets a string list containing the keys in the dict.
|
java.util.Iterator<java.lang.String> |
iterator() |
void |
remove(java.lang.String key)
Removes an element of the StringDict object.
|
void |
set(java.lang.String key,
java.lang.String item)
Sets an item of the StringDict object.
|
public StringDict()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public StringDict(long handle)
throws DocumentException
handle - Handle to the StringDict.DocumentException - An error has occurred during Document Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public StringDict clone() throws DocumentException
clone in class java.lang.ObjectDocumentException - An error has occurred during Document Library execution.public StringList getKeys() throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void clear()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public void add(java.lang.String key,
java.lang.String item)
throws DocumentException
key - Unique key of the item to add.item - item to add.DocumentException - An error has occurred during Document Library execution.public java.lang.String get(java.lang.String key)
throws DocumentException
key - Unique key of the item to get.DocumentException - An error has occurred during Document Library execution.public void set(java.lang.String key,
java.lang.String item)
throws DocumentException
key - Unique key of the item to set.item - item to set.DocumentException - An error has occurred during Document Library execution.public int getCount()
throws DocumentException
DocumentException - An error has occurred during Document Library execution.public boolean containsKey(java.lang.String key)
throws DocumentException
key - The key to locate in the object.DocumentException - An error has occurred during Document Library execution.public void remove(java.lang.String key)
throws DocumentException
key - Unique key of the item to remove.DocumentException - An error has occurred during Document Library execution.public java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document