Top Fields Constructors Methods
org.hibernate.internal.util

public final Class SubSequence

extends Object
implements CharSequence
Class Inheritance
All Implemented Interfaces
java.lang.CharSequence

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final int
private final CharSequence
private final int

Constructor Summary

AccessConstructor and Description
public
SubSequence(CharSequence sequence, int start, int end)

Method Summary

Modifier and TypeMethod and Description
public char
charAt(int
the index of the char value to be returned
index
)

Implements java.lang.CharSequence.charAt.

Returns the char value at the specified index.
public int
indexOf(char c, int fromIndex, int endIndex)

public int
indexOf(String s, int fromIndex, int endIndex)

public int
lastIndexOf(char c, int fromIndex, int endIndex)

public int
length()

Implements java.lang.CharSequence.length.

Returns the length of this character sequence.
public CharSequence
subSequence(int
the start index, inclusive
start
,
int
the end index, exclusive
end
)

Implements java.lang.CharSequence.subSequence.

Returns a CharSequence that is a subsequence of this sequence.
public String
toString()

Overrides java.lang.Object.toString.

Implements java.lang.CharSequence.toString.

Returns a string containing the characters in this sequence in the same order as this sequence.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

lengthback to summary
private final int length
sequenceback to summary
private final CharSequence sequence
startback to summary
private final int start

Constructor Detail

SubSequenceback to summary
public SubSequence(CharSequence sequence, int start, int end)

Method Detail

charAtback to summary
public char charAt(int index)

Implements java.lang.CharSequence.charAt.

Doc from java.lang.CharSequence.charAt.

Returns the 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.

Parameters
index:int

the index of the char value to be returned

Returns:char

the specified char value

Annotations
@Override
indexOfback to summary
public int indexOf(char c, int fromIndex, int endIndex)
indexOfback to summary
public int indexOf(String s, int fromIndex, int endIndex)
lastIndexOfback to summary
public int lastIndexOf(char c, int fromIndex, int endIndex)
lengthback to summary
public int length()

Implements java.lang.CharSequence.length.

Doc from java.lang.CharSequence.length.

Returns the length of this character sequence. The length is the number of 16-bit chars in the sequence.

Returns:int

the number of chars in this sequence

Annotations
@Override
subSequenceback to summary
public CharSequence subSequence(int start, int end)

Implements java.lang.CharSequence.subSequence.

Doc from java.lang.CharSequence.subSequence.

Returns a 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 chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.

Parameters
start:int

the start index, inclusive

end:int

the end index, exclusive

Returns:CharSequence

the specified subsequence

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.lang.CharSequence.toString.

Doc from java.lang.CharSequence.toString.

Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.

Returns:String

a string consisting of exactly this sequence of characters

Annotations
@Override