Top Description Constructors Methods
org.eclipse.collections.impl.factory

public final Class Strings

extends Object
Class Inheritance
Imports
org.eclipse.collections.impl.string.immutable.CharAdapter, .CodePointAdapter

This class can be used to create instances of CharAdapter and CodePointAdapter.
CharAdapter chars1 = Strings.asChars("Hello World!");
CharAdapter chars2 = Strings.toChars('a', 'b', 'c');

CodePointAdapter codePoints1 = Strings.asCodePoints("Hello World!");
CodePointAdapter codePoints2 = Strings.toCodePoints((int)'a', (int)'b', (int)'c');

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CharAdapter
asChars(String string)

public static CodePointAdapter
public static CharAdapter
toChars(char... array)

public static CodePointAdapter
toCodePoints(int... array)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Stringsback to summary
private Strings()

Method Detail

asCharsback to summary
public static CharAdapter asChars(String string)
asCodePointsback to summary
public static CodePointAdapter asCodePoints(String string)
toCharsback to summary
public static CharAdapter toChars(char... array)
toCodePointsback to summary
public static CodePointAdapter toCodePoints(int... array)