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
Linked hash map of properties.
- Since:
- Marvin 4.1.6, 02/13/2007
- See Also:
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal MCollectionProp
cloneCollectionProp
(Set xprops) Clones the object.convertToString
(String fmt, int flags) Deprecated, for removal: This API element is subject to removal in a future version.boolean
final MProp
get
(int i) Gets a value.final MProp
Gets a value.final String
getKey
(int i) Gets a key.getMap()
Gets the map.int
Gets the array size.Gets the type name of the property.Gets the property value as an object.int
hashCode()
final void
Puts a value.void
Replaces or removes a property.final int
size()
Gets the table size.,toString()
Overrides Object.toString() to ease debugging.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
-
Constructor Details
-
MHashProp
public MHashProp()Constructs a property object from an integer value. -
MHashProp
Copy constructor.- Parameters:
other
- the other objectxprops
- property objects in this set are not cloned
-
-
Method Details
-
getPropArraySize
public int getPropArraySize()Gets the array size.- Overrides:
getPropArraySize
in classMProp
- Returns:
- the array size
-
convertToString
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public String convertToString(String fmt, int flags) Deprecated, for removal: This API element is subject to removal in a future version.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
Gets the property value as an object.- Specified by:
getPropValue
in classMProp
- Returns:
- the Integer
-
getMap
Gets the map.- Returns:
- the value
-
size
public final int size()Gets the table size.,- Returns:
- the size
-
getKey
Gets a key.- Parameters:
i
- the index- Returns:
- the key
-
get
Gets a value.- Parameters:
i
- the index- Returns:
- the value
-
get
Gets a value.- Parameters:
key
- the key- Returns:
- the value
-
put
Puts a value.- Parameters:
key
- the keyv
- the value
-
unorderedIterator
Gets an iterator for the entries.- Specified by:
unorderedIterator
in classMCollectionProp
- Returns:
- the iterator
-
replace
Replaces or removes a property.- Specified by:
replace
in classMCollectionProp
- Parameters:
oldp
- the old objectnewp
- the new object ornull
to remove
-
getPropType
Gets the type name of the property.- Specified by:
getPropType
in classMProp
- Returns:
- "MHashProp"
-
cloneCollectionProp
Clones the object.- Specified by:
cloneCollectionProp
in classMCollectionProp
- Parameters:
xprops
- property objects in this set are not cloned- Returns:
- the clone
-
equals
- Overrides:
equals
in classMCollectionProp
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMCollectionProp
-
toString
Description copied from class:MProp
Overrides Object.toString() to ease debugging. Returns a string consisting of the classname (without the package name!), the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object.
-
MPropHandler.convertToString(MProp, String)