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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal MCollectionPropcloneCollectionProp(Set xprops) Clones the object.convertToString(String fmt, int flags) Deprecated, for removal: This API element is subject to removal in a future version.booleanfinal MPropget(int i) Gets a value.final MPropGets a value.final StringgetKey(int i) Gets a key.getMap()Gets the map.intGets the array size.Gets the type name of the property.Gets the property value as an object.inthashCode()final voidPuts a value.voidReplaces or removes a property.final intsize()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, getPropXSDTypeMethods 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:
getPropArraySizein 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:
convertToStringin classMProp- Parameters:
fmt- the molecule file format ornullflags- optional conversion flags- Returns:
- the string
- Since:
- Marvin 4.1.7, 04/10/2007
-
getPropValue
Gets the property value as an object.- Specified by:
getPropValuein 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:
unorderedIteratorin classMCollectionProp- Returns:
- the iterator
-
replace
Replaces or removes a property.- Specified by:
replacein classMCollectionProp- Parameters:
oldp- the old objectnewp- the new object ornullto remove
-
getPropType
Gets the type name of the property.- Specified by:
getPropTypein classMProp- Returns:
- "MHashProp"
-
cloneCollectionProp
Clones the object.- Specified by:
cloneCollectionPropin classMCollectionProp- Parameters:
xprops- property objects in this set are not cloned- Returns:
- the clone
-
equals
- Overrides:
equalsin classMCollectionProp
-
hashCode
public int hashCode()- Overrides:
hashCodein classMCollectionProp
-
toString
Description copied from class:MPropOverrides 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)