public class VisibleString extends AbstractData
Constructor and Description |
---|
VisibleString()
The default constructor.
|
VisibleString(char[] value)
Constructs the
VisibleString object with the specified char[] value. |
VisibleString(java.lang.String value)
Constructs the
VisibleString object with the specified String value. |
Modifier and Type | Method and Description |
---|---|
char[] |
charArrayValue()
Gets the value of
this object as a char[] . |
boolean |
equals(java.lang.Object that)
Compares this object to another
VisibleString to see if they are equal. |
int |
getSize()
Returns the size of the
VisibleString in characters. |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setValue(char[] value)
Sets the value of
this object to the specified char[] value. |
void |
setValue(java.lang.String value)
Sets the value of
this object to the specified String value. |
java.lang.String |
stringValue()
Gets the value of
this object as a String object. |
clone
public VisibleString()
VisibleString
to the default value
(an empty String
).public VisibleString(java.lang.String value)
VisibleString
object with the specified String
value.value
- specifies the new value.public VisibleString(char[] value)
VisibleString
object with the specified char[]
value.value
- specifies the new value.public final void setValue(java.lang.String value)
this
object to the specified String
value.value
- specifies the new value.public final void setValue(char[] value)
this
object to the specified char[]
value.value
- specifies the new value.public final java.lang.String stringValue()
this
object as a String
object.String
value of 'this' object.public final char[] charArrayValue()
this
object as a char[]
.char[]
value of 'this' object.public final int getSize()
VisibleString
in characters.VisibleString
in characters.public boolean equals(java.lang.Object that)
VisibleString
to see if they are equal. Two VisibleString
objects are considered equal if and only if they have identical String
values.equals
in class java.lang.Object
that
- the OctetString
object to be compared to.public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2024 OSS Nokalva, Inc. All rights reserved.
This document is proprietary to OSS Nokalva, Inc., and may be used only by their direct licensees. Distribution is not permitted. This copyright statement must not be removed.