Package chemaxon.struc.prop
Class MHashProp
- java.lang.Object
-
- chemaxon.struc.MProp
-
- chemaxon.struc.prop.MCollectionProp
-
- chemaxon.struc.prop.MHashProp
-
- All Implemented Interfaces:
Serializable
,Cloneable
@PublicAPI public class MHashProp extends MCollectionProp
Linked hash map of properties.- Since:
- Marvin 4.1.6, 02/13/2007
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class chemaxon.struc.MProp
COORDDEP, TYPE_3D_COORDS, TYPE_ARRAY_BYTE, TYPE_ARRAY_DOUBLE, TYPE_ARRAY_INTEGER, TYPE_BOOLEAN, TYPE_COLLECTION_HASH, TYPE_COLLECTION_LIST, TYPE_CONFORMER_DESCRIPTOR, TYPE_DOUBLE, TYPE_FONT, TYPE_INTEGER, TYPE_MDOCUMENT_PROP, TYPE_MOLECULE, TYPE_OBJECT, TYPE_STRING, TYPE_VOLUMETRIC_DATA
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MCollectionProp
cloneCollectionProp(Set xprops)
Clones the object.String
convertToString(String fmt, int flags)
Deprecated.As of Marvin 5.7, replaced byMPropHandler.convertToString(MProp, String)
boolean
equals(Object o)
MProp
get(int i)
Gets a value.MProp
get(String key)
Gets a value.String
getKey(int i)
Gets a key.Map<String,MProp>
getMap()
Gets the map.int
getPropArraySize()
Gets the array size.String
getPropType()
Gets the type name of the property.Object
getPropValue()
Gets the property value as an object.int
hashCode()
void
put(String key, MProp v)
Puts a value.void
replace(MProp oldp, MProp newp)
Replaces or removes a property.int
size()
Gets the table size.,String
toString()
Overrides Object.toString() to ease debugging.Iterator
unorderedIterator()
Gets an iterator for the entries.-
Methods inherited from class chemaxon.struc.prop.MCollectionProp
clone, cloneProp, contains, getPropXSDType
-
Methods inherited from class chemaxon.struc.MProp
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
-
-
-
-
Method Detail
-
getPropArraySize
public int getPropArraySize()
Gets the array size.- Overrides:
getPropArraySize
in classMProp
- Returns:
- the array size
-
convertToString
@Deprecated public String convertToString(String fmt, int flags)
Deprecated.As of Marvin 5.7, replaced byMPropHandler.convertToString(MProp, String)
Converts the property to text format.- Specified by:
convertToString
in classMProp
- Parameters:
fmt
- the molecule file format ornull
flags
- optional conversion flags- Returns:
- the string
- Throws:
MolExportException
- Since:
- Marvin 4.1.7, 04/10/2007
-
getPropValue
public Object getPropValue()
Gets the property value as an object.- Specified by:
getPropValue
in classMProp
- Returns:
- the Integer
-
size
public final int size()
Gets the table size.,- Returns:
- the size
-
getKey
public final String getKey(int i)
Gets a key.- Parameters:
i
- the index- Returns:
- the key
-
get
public final MProp get(int i)
Gets a value.- Parameters:
i
- the index- Returns:
- the value
-
put
public final void put(String key, MProp v)
Puts a value.- Parameters:
key
- the keyv
- the value
-
unorderedIterator
public Iterator unorderedIterator()
Gets an iterator for the entries.- Specified by:
unorderedIterator
in classMCollectionProp
- Returns:
- the iterator
-
replace
public void replace(MProp oldp, MProp newp)
Replaces or removes a property.- Specified by:
replace
in classMCollectionProp
- Parameters:
oldp
- the old objectnewp
- the new object ornull
to remove
-
getPropType
public String getPropType()
Gets the type name of the property.- Specified by:
getPropType
in classMProp
- Returns:
- "MHashProp"
-
cloneCollectionProp
public final MCollectionProp cloneCollectionProp(Set xprops)
Clones the object.- Specified by:
cloneCollectionProp
in classMCollectionProp
- Parameters:
xprops
- property objects in this set are not cloned- Returns:
- the clone
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMCollectionProp
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMCollectionProp
-
-