public class NonGenericDictionary extends Object
Represents a non generic dictionary.
Constructor and Description |
---|
NonGenericDictionary(Map map) |
Modifier and Type | Method and Description |
---|---|
void |
add(Object key,
Object value) |
void |
addItem(Object key,
Object value)
Deprecated.
|
void |
clear()
Removes all elements from the
IDictionary object. |
boolean |
contains(Object key)
Determines whether the
IDictionary object contains an element with the specified key. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the
ICollection to an
Array , starting at a particular
Array index. |
void |
copyTo(Object array,
int index) |
Object |
get_Item(Object key)
Gets or sets the element with the specified key.
|
int |
getCount() |
com.aspose.ms.System.Collections.IEnumerator |
getEnumerator() |
com.aspose.ms.System.Collections.ICollection |
getKeys()
Gets an
ICollection object containing the keys of the
IDictionary object. |
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the
ICollection . |
com.aspose.ms.System.Collections.ICollection |
getValues()
Gets an
ICollection object containing the values in the
IDictionary object. |
boolean |
isFixedSize()
Gets a value indicating whether the
IDictionary object has a fixed size. |
boolean |
isReadOnly()
Gets a value indicating whether the
IDictionary object is read-only. |
boolean |
isSynchronized()
Gets a value indicating whether access to the
ICollection is synchronized (thread safe). |
com.aspose.ms.System.Collections.IDictionaryEnumerator |
iterator()
Deprecated.
|
void |
remove(Object key) |
void |
removeItem(Object key)
Deprecated.
|
void |
set_Item(Object key,
Object value)
Gets or sets the element with the specified key.
|
int |
size()
Deprecated.
|
public NonGenericDictionary(Map map)
public final boolean isFixedSize()
Gets a value indicating whether the
IDictionary
object has a fixed size.
IDictionary
object has a fixed size; otherwise, false.public final boolean isReadOnly()
Gets a value indicating whether the
IDictionary
object is read-only.
IDictionary
object is read-only; otherwise, false.public final com.aspose.ms.System.Collections.ICollection getKeys()
Gets an
ICollection
object containing the keys of the
IDictionary
object.
ICollection
object containing the keys of the IDictionary
object.@Deprecated public final int size()
Gets the number of elements contained in the
ICollection
.
ICollection
.public final int getCount()
public final boolean isSynchronized()
Gets a value indicating whether access to the
ICollection
is synchronized (thread safe).
ICollection
is synchronized (thread safe); otherwise, false.public final Object getSyncRoot()
Gets an object that can be used to synchronize access to the
ICollection
.
ICollection
.public final com.aspose.ms.System.Collections.ICollection getValues()
Gets an
ICollection
object containing the values in the
IDictionary
object.
ICollection
object containing the values in the IDictionary
object.public final Object get_Item(Object key)
Gets or sets the element with the specified key.
key
- The element key.public final void set_Item(Object key, Object value)
Gets or sets the element with the specified key.
key
- The element key.value
- The element with the specified key.@Deprecated public final void removeItem(Object key)
Removes the element with the specified key from the
IDictionary
object.
key
- The key of the element to remove.public final void remove(Object key)
public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies the elements of the
ICollection
to an
Array
, starting at a particular
Array
index.
array
- The one-dimensional
Array
that is the destination of the elements copied from
ICollection
. The
Array
must have zero-based indexing.index
- The zero-based index in
array
at which copying begins.public final void copyTo(Object array, int index)
@Deprecated public final void addItem(Object key, Object value)
Adds an element with the provided key and value to the
IDictionary
object.
public final void clear()
Removes all elements from the
IDictionary
object.
public final boolean contains(Object key)
Determines whether the
IDictionary
object contains an element with the specified key.
key
- The key to locate in the
IDictionary
object.IDictionary
contains an element with the key; otherwise, false.@Deprecated public final com.aspose.ms.System.Collections.IDictionaryEnumerator iterator()
Gets the enumerator.
public final com.aspose.ms.System.Collections.IEnumerator getEnumerator()
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.