@OpenApiAll public class OOXMLTagString extends java.lang.Object implements java.lang.CharSequence, IVariable
Constructor and Description |
---|
OOXMLTagString(java.lang.CharSequence charSequence)
Constructs a retained string that contains the same characters as the specified CharSequence.
|
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index)
Returns the
char value at the specified index. |
boolean |
equals(java.lang.Object anObject)
Compares this HTMLString to the specified object.
|
int |
hashCode()
Returns a hash code for this HTMLString.
|
int |
length()
Returns the length of this character sequence.
|
java.lang.CharSequence |
subSequence(int start,
int end)
Returns a new
CharSequence that is a subsequence of this sequence. |
java.lang.String |
toString()
Returns a string containing the characters in this sequence in the same order as this sequence.
|
public OOXMLTagString(java.lang.CharSequence charSequence)
charSequence
- the sequence to copy.public char charAt(int index)
char
value at the specified index. An index ranges from zero to
length() - 1. The first char
value of the sequence is at index zero, the next at
index one, and so on, as for array indexing.
If the char
value specified by the index is a surrogate, the surrogate value is returned.
charAt
in interface java.lang.CharSequence
index
- the index of the char
value to be returnedchar
valuejava.lang.IndexOutOfBoundsException
- if the index argument is negative or not less than
length()CharSequence.charAt(int)
public int length()
char
s in
the sequence.length
in interface java.lang.CharSequence
char
s in this sequenceCharSequence.length()
public java.lang.CharSequence subSequence(int start, int end)
CharSequence
that is a subsequence of this sequence. The subsequence starts
with the char
value at the specified index and ends with the char
value at
index end - 1. The length (in char
s) of the returned sequence is
end - start, so if start == end then an empty sequence is returned.subSequence
in interface java.lang.CharSequence
start
- the start index, inclusiveend
- the end index, exclusivejava.lang.IndexOutOfBoundsException
- if start or end are negative, if end is
greater than length(), or if start is greater than endCharSequence.subSequence(int, int)
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public boolean equals(java.lang.Object anObject)
true
if and only if the argument
is not null
and is a HTMLString
object that represents the same sequence of characters as
this object.equals
in class java.lang.Object
anObject
- The object to compare this HTMLString
againsttrue
if the given object represents a HTMLString
equivalent to this HTMLString,
false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - No Magic Asia