Top Description Fields Constructors Methods
org.apache.commons.text.lookup

pack-priv abstract Class AbstractStringLookup

extends Object
implements StringLookup
Class Inheritance
All Implemented Interfaces
org.apache.commons.text.lookup.StringLookup, java.util.function.UnaryOperator, java.util.function.Function
Known Direct Subclasses
org.apache.commons.text.lookup.ConstantStringLookup, org.apache.commons.text.lookup.DateStringLookup, org.apache.commons.text.lookup.DnsStringLookup, org.apache.commons.text.lookup.FunctionStringLookup, org.apache.commons.text.lookup.InetAddressStringLookup, org.apache.commons.text.lookup.InterpolatorStringLookup, org.apache.commons.text.lookup.JavaPlatformStringLookup, org.apache.commons.text.lookup.ResourceBundleStringLookup, org.apache.commons.text.lookup.ScriptStringLookup, org.apache.commons.text.lookup.UrlDecoderStringLookup, org.apache.commons.text.lookup.UrlEncoderStringLookup, org.apache.commons.text.lookup.UrlStringLookup, org.apache.commons.text.lookup.XmlDecoderStringLookup, org.apache.commons.text.lookup.XmlEncoderStringLookup, org.apache.commons.text.lookup.AbstractPathFencedLookup
Imports
org.apache.commons.lang3.StringUtils

A default lookup for others to extend in this package.
Since
1.3

Field Summary

Modifier and TypeField and Description
protected static final char
SPLIT_CH

The default split char.

protected static final String
SPLIT_STR

The default split string.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

a new string.
substringAfter
(final String
The source string.
value
,
final char
The character to search.
ch
)

Returns the substring after the first occurrence of ch in value.

protected String

Returns:

a new string.
substringAfter
(final String
The source string.
value
,
final String
The string to search.
str
)

Returns the substring after the first occurrence of str in value.

protected String

Returns:

a new string.
substringAfterLast
(final String
The source string.
value
,
final char
The character to search.
ch
)

Returns the substring after the first occurrence of ch in value.

pack-priv static String
toLookupKey(final String left, final String right)

Creates a lookup key for a given file and key.

pack-priv static String
toLookupKey(final String left, final String separator, final String right)

Creates a lookup key for a given file and key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SPLIT_CHback to summary
protected static final char SPLIT_CH

The default split char.

SPLIT_STRback to summary
protected static final String SPLIT_STR

The default split string.

Constructor Detail

AbstractStringLookupback to summary
pack-priv AbstractStringLookup()

Method Detail

substringAfterback to summary
protected String substringAfter(final String value, final char ch)

Returns the substring after the first occurrence of ch in value.

Parameters
value:String

The source string.

ch:char

The character to search.

Returns:String

a new string.

Annotations
@Deprecated
substringAfterback to summary
protected String substringAfter(final String value, final String str)

Returns the substring after the first occurrence of str in value.

Parameters
value:String

The source string.

str:String

The string to search.

Returns:String

a new string.

Annotations
@Deprecated
substringAfterLastback to summary
protected String substringAfterLast(final String value, final char ch)

Returns the substring after the first occurrence of ch in value.

Parameters
value:String

The source string.

ch:char

The character to search.

Returns:String

a new string.

Annotations
@Deprecated
toLookupKeyback to summary
pack-priv static String toLookupKey(final String left, final String right)

Creates a lookup key for a given file and key.

toLookupKeyback to summary
pack-priv static String toLookupKey(final String left, final String separator, final String right)

Creates a lookup key for a given file and key.