public interface OsidPrimitive
extends java.io.Serializable
equals()
should be commutative such
that object1.equals(object2)
has the same result as
object2.equals(object1)
.
Primitives support Java Serialization. Java serialization and
deserialization is used for persisting and retrieving the state of
the internal object. toString()
can be used for
outputting a standard format, as for example a date or a Type,
using the exposed interfaces that can be used for reconstructing
the underlying object from scratch. In this case, offering a
valueOf()
method to that is compatible with the
object's output format can be handy.
Output display and serialization will vary depending on the
implementation of this interface. Consumers needing a consistent
behavior across all OSID Providers should wrap this primitive in
another of known behavior. Implementations of OsidPrimitives are
also encouraged to permit easy construction given another object
of the same interface.Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representation of this OsidPrimitive.
|
java.lang.String toString()
toString
in class java.lang.Object