Table of Contents

Class String

Namespace
Java.Lang
Assembly
MASES.JNet.dll
public class String : JVMBridgeBase<String>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, INativeConvertible<String, string>, IComparable<String>, IEquatable<String>
Inheritance
JVMBridgeBase
JVMBridgeBase<String>
String
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<String>.IsAssignableFrom(IJavaType)
JVMBridgeBase<String>.IsAssignableFrom<T>()
JVMBridgeBase<String>.Execute<T>(params T[])
JVMBridgeBase<String>.DynBridgeClazz
JVMBridgeBase<String>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

String()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public String()

String(String)

public String(String arg0)

Parameters

arg0 String

String

String(StringBuffer)

public String(StringBuffer arg0)

Parameters

arg0 StringBuffer

StringBuffer

String(StringBuilder)

public String(StringBuilder arg0)

Parameters

arg0 StringBuilder

StringBuilder

String(byte[])

public String(byte[] arg0)

Parameters

arg0 byte[]

byte

String(byte[], String)

public String(byte[] arg0, String arg1)

Parameters

arg0 byte[]

byte

arg1 String

String

Exceptions

UnsupportedEncodingException

String(byte[], Charset)

public String(byte[] arg0, Charset arg1)

Parameters

arg0 byte[]

byte

arg1 Charset

Charset

String(byte[], int, int)

public String(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

String(byte[], int, int, String)

public String(byte[] arg0, int arg1, int arg2, String arg3)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

arg3 String

String

Exceptions

UnsupportedEncodingException

String(byte[], int, int, Charset)

public String(byte[] arg0, int arg1, int arg2, Charset arg3)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

arg3 Charset

Charset

String(char[])

public String(char[] arg0)

Parameters

arg0 char[]

char

String(char[], int, int)

public String(char[] arg0, int arg1, int arg2)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

String(int[], int, int)

public String(int[] arg0, int arg1, int arg2)

Parameters

arg0 int[]

int

arg1 int

int

arg2 int

int

String(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public String(params object[] args)

Parameters

args object[]

String(string)

public String(string arg0)

Parameters

arg0 string

string

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Bytes

public byte[] Bytes { get; }

Property Value

byte[]

CASE_INSENSITIVE_ORDER

public static Comparator CASE_INSENSITIVE_ORDER { get; }

Property Value

Comparator

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

this[int]

Returns the character at index

public char this[int index] { get; }

Parameters

index int

The index of the character to return

Property Value

char

char at index

Methods

CharAt(int)

public char CharAt(int arg0)

Parameters

arg0 int

int

Returns

char

char

Chars()

public IntStream Chars()

Returns

IntStream

IntStream

CodePointAt(int)

public int CodePointAt(int arg0)

Parameters

arg0 int

int

Returns

int

int

CodePointBefore(int)

public int CodePointBefore(int arg0)

Parameters

arg0 int

int

Returns

int

int

CodePointCount(int, int)

public int CodePointCount(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

CodePoints()

public IntStream CodePoints()

Returns

IntStream

IntStream

CompareTo(String)

public int CompareTo(String arg0)

Parameters

arg0 String

String

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

CompareToIgnoreCase(String)

public int CompareToIgnoreCase(String arg0)

Parameters

arg0 String

String

Returns

int

int

Concat(String)

public String Concat(String arg0)

Parameters

arg0 String

String

Returns

String

String

Contains(CharSequence)

public bool Contains(CharSequence arg0)

Parameters

arg0 CharSequence

CharSequence

Returns

bool

bool

ContentEquals(CharSequence)

public bool ContentEquals(CharSequence arg0)

Parameters

arg0 CharSequence

CharSequence

Returns

bool

bool

ContentEquals(StringBuffer)

public bool ContentEquals(StringBuffer arg0)

Parameters

arg0 StringBuffer

StringBuffer

Returns

bool

bool

CopyValueOf(char[])

public static String CopyValueOf(char[] arg0)

Parameters

arg0 char[]

char

Returns

String

String

CopyValueOf(char[], int, int)

public static String CopyValueOf(char[] arg0, int arg1, int arg2)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

Returns

String

String

EndsWith(String)

public bool EndsWith(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

EqualsIgnoreCase(String)

public bool EqualsIgnoreCase(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

Format(String, params object[])

public static String Format(String arg0, params object[] arg1)

Parameters

arg0 String

String

arg1 object[]

object

Returns

String

String

Format(Locale, String, params object[])

public static String Format(Locale arg0, String arg1, params object[] arg2)

Parameters

arg0 Locale

Locale

arg1 String

String

arg2 object[]

object

Returns

String

String

GetBytes(String)

public byte[] GetBytes(String arg0)

Parameters

arg0 String

String

Returns

byte[]

byte

Exceptions

UnsupportedEncodingException

GetBytes(Charset)

public byte[] GetBytes(Charset arg0)

Parameters

arg0 Charset

Charset

Returns

byte[]

byte

GetChars(int, int, char[], int)

public void GetChars(int arg0, int arg1, char[] arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 char[]

char

arg3 int

int

IndexOf(String)

public int IndexOf(String arg0)

Parameters

arg0 String

String

Returns

int

int

IndexOf(String, int)

public int IndexOf(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

int

int

IndexOf(int)

public int IndexOf(int arg0)

Parameters

arg0 int

int

Returns

int

int

IndexOf(int, int)

public int IndexOf(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

Intern()

public String Intern()

Returns

String

String

IsBlank()

public bool IsBlank()

Returns

bool

bool

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

Join(CharSequence, params CharSequence[])

public static String Join(CharSequence arg0, params CharSequence[] arg1)

Parameters

arg0 CharSequence

CharSequence

arg1 CharSequence[]

CharSequence

Returns

String

String

Join<Arg1ExtendsJava_Lang_CharSequence>(CharSequence, Iterable<Arg1ExtendsJava_Lang_CharSequence>)

public static String Join<Arg1ExtendsJava_Lang_CharSequence>(CharSequence arg0, Iterable<Arg1ExtendsJava_Lang_CharSequence> arg1) where Arg1ExtendsJava_Lang_CharSequence : CharSequence

Parameters

arg0 CharSequence

CharSequence

arg1 Iterable<Arg1ExtendsJava_Lang_CharSequence>

Iterable

Returns

String

String

Type Parameters

Arg1ExtendsJava_Lang_CharSequence

CharSequence

LastIndexOf(String)

public int LastIndexOf(String arg0)

Parameters

arg0 String

String

Returns

int

int

LastIndexOf(String, int)

public int LastIndexOf(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

int

int

LastIndexOf(int)

public int LastIndexOf(int arg0)

Parameters

arg0 int

int

Returns

int

int

LastIndexOf(int, int)

public int LastIndexOf(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

Length()

public int Length()

Returns

int

int

Lines()

public Stream<String> Lines()

Returns

Stream<String>

Stream

Matches(String)

public bool Matches(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

OffsetByCodePoints(int, int)

public int OffsetByCodePoints(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

RegionMatches(bool, int, String, int, int)

public bool RegionMatches(bool arg0, int arg1, String arg2, int arg3, int arg4)

Parameters

arg0 bool

bool

arg1 int

int

arg2 String

String

arg3 int

int

arg4 int

int

Returns

bool

bool

RegionMatches(int, String, int, int)

public bool RegionMatches(int arg0, String arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 String

String

arg2 int

int

arg3 int

int

Returns

bool

bool

Repeat(int)

public String Repeat(int arg0)

Parameters

arg0 int

int

Returns

String

String

Replace(CharSequence, CharSequence)

public String Replace(CharSequence arg0, CharSequence arg1)

Parameters

arg0 CharSequence

CharSequence

arg1 CharSequence

CharSequence

Returns

String

String

Replace(char, char)

public String Replace(char arg0, char arg1)

Parameters

arg0 char

char

arg1 char

char

Returns

String

String

ReplaceAll(String, String)

public String ReplaceAll(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

String

String

ReplaceFirst(String, String)

public String ReplaceFirst(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

String

String

Split(String)

public String[] Split(String arg0)

Parameters

arg0 String

String

Returns

String[]

String

Split(String, int)

public String[] Split(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

String[]

String

StartsWith(String)

public bool StartsWith(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

StartsWith(String, int)

public bool StartsWith(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

bool

bool

Strip()

public String Strip()

Returns

String

String

StripLeading()

public String StripLeading()

Returns

String

String

StripTrailing()

public String StripTrailing()

Returns

String

String

SubSequence(int, int)

public CharSequence SubSequence(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

CharSequence

CharSequence

Substring(int)

public String Substring(int arg0)

Parameters

arg0 int

int

Returns

String

String

Substring(int, int)

public String Substring(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

String

String

ToCharArray()

public char[] ToCharArray()

Returns

char[]

char

ToJVM(string)

Returns the String from the clrValue instance

public static String ToJVM(string clrValue)

Parameters

clrValue string

The string of CLR

Returns

String

The converted String

ToLowerCase()

public String ToLowerCase()

Returns

String

String

ToLowerCase(Locale)

public String ToLowerCase(Locale arg0)

Parameters

arg0 Locale

Locale

Returns

String

String

ToUpperCase()

public String ToUpperCase()

Returns

String

String

ToUpperCase(Locale)

public String ToUpperCase(Locale arg0)

Parameters

arg0 Locale

Locale

Returns

String

String

Trim()

public String Trim()

Returns

String

String

ValueOf(bool)

public static String ValueOf(bool arg0)

Parameters

arg0 bool

bool

Returns

String

String

ValueOf(char)

public static String ValueOf(char arg0)

Parameters

arg0 char

char

Returns

String

String

ValueOf(char[])

public static String ValueOf(char[] arg0)

Parameters

arg0 char[]

char

Returns

String

String

ValueOf(char[], int, int)

public static String ValueOf(char[] arg0, int arg1, int arg2)

Parameters

arg0 char[]

char

arg1 int

int

arg2 int

int

Returns

String

String

ValueOf(double)

public static String ValueOf(double arg0)

Parameters

arg0 double

double

Returns

String

String

ValueOf(int)

public static String ValueOf(int arg0)

Parameters

arg0 int

int

Returns

String

String

ValueOf(long)

public static String ValueOf(long arg0)

Parameters

arg0 long

long

Returns

String

String

ValueOf(object)

public static String ValueOf(object arg0)

Parameters

arg0 object

object

Returns

String

String

ValueOf(float)

public static String ValueOf(float arg0)

Parameters

arg0 float

float

Returns

String

String

Operators

operator +(String, String)

Binary operator managing concatanation within JVM

public static String operator +(String a, String b)

Parameters

a String

The left String

b String

The right String

Returns

String

A new String which is the concatanation of a and b

Remarks

This overload can be very helpful because it avoids to move string contant from JVM to .NET and viceversa

implicit operator Serializable(String)

Converter from String to Serializable

public static implicit operator Serializable(String t)

Parameters

t String

Returns

Serializable

implicit operator CharSequence(String)

Converter from String to CharSequence

public static implicit operator CharSequence(String t)

Parameters

t String

Returns

CharSequence

implicit operator Comparable(String)

Converter from String to Comparable

public static implicit operator Comparable(String t)

Parameters

t String

Returns

Comparable

implicit operator string(String)

Converter from String to string

public static implicit operator string(String b)

Parameters

b String

Returns

string

implicit operator String(string)

Converter from string to String

public static implicit operator String(string b)

Parameters

b string

Returns

String