public class MHashProp extends MCollectionProp
Modifier | Constructor and Description |
---|---|
|
MHashProp()
Constructs a property object from an integer value.
|
protected |
MHashProp(MHashProp other,
Set xprops)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
MCollectionProp |
cloneCollectionProp(Set xprops)
Clones the object.
|
String |
convertToString(String fmt,
int flags)
Deprecated.
As of Marvin 5.7, replaced by
MPropHandler.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.
|
clone, cloneProp, contains, getPropXSDType
convertToString, getGrinvCC, isCoordDependent, setCoordDependent
public int getPropArraySize()
getPropArraySize
in class MProp
@Deprecated public String convertToString(String fmt, int flags)
MPropHandler.convertToString(MProp, String)
convertToString
in class MProp
fmt
- the molecule file format or null
flags
- optional conversion flagsMolExportException
public Object getPropValue()
getPropValue
in class MProp
public final int size()
public final String getKey(int i)
i
- the indexpublic final MProp get(int i)
i
- the indexpublic Iterator unorderedIterator()
unorderedIterator
in class MCollectionProp
public void replace(MProp oldp, MProp newp)
replace
in class MCollectionProp
oldp
- the old objectnewp
- the new object or null
to removepublic String getPropType()
getPropType
in class MProp
public final MCollectionProp cloneCollectionProp(Set xprops)
cloneCollectionProp
in class MCollectionProp
xprops
- property objects in this set are not clonedpublic boolean equals(Object o)
equals
in class MCollectionProp
public int hashCode()
hashCode
in class MCollectionProp