public class MCage
extends java.lang.Object
Instances of this class can be used by multiple threads concurrently.
| Constructor and Description |
|---|
MCage(int number,
java.lang.String period)
Initializes an age object based on a number of periods.
|
MCage(java.lang.String ageStr)
Initializes an age object based on a formatted DICOM age string
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this age instance to the specified object.
|
java.lang.String |
toString()
Get the content of this age object.
|
public MCage(int number,
java.lang.String period)
This form of the constructor is preferred since it insures the value will be properly formatted for the DICOM Age String(AS) Value Representation.
number - The number of days, weeks, months or years.period - The period represented by the number parameter, "D" for days, "W" for weeks,
"M" for months or "Y" for years.MCexception - If one of the arguments is invalid.public MCage(java.lang.String ageStr)
ageStr - The age string as defined by DICOM.MCexception - If the argument is null.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare this MCage against.true if the given object is an MCage instance and it represents the same
value as this one.