Class String
public class String : JVMBridgeBase<String>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, INativeConvertible<String, string>, IComparable<String>, IEquatable<String>
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<String>String
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<String>.IsAssignableFrom(IJavaType)JVMBridgeBase<String>.IsAssignableFrom<T>()JVMBridgeBase<String>.Execute<T>(params T[])JVMBridgeBase<String>.DynBridgeClazzJVMBridgeBase<String>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
String(StringBuffer)
public String(StringBuffer arg0)
Parameters
arg0
StringBuffer
String(StringBuilder)
public String(StringBuilder arg0)
Parameters
String(byte[])
public String(byte[] arg0)
Parameters
String(byte[], String)
public String(byte[] arg0, String arg1)
Parameters
Exceptions
String(byte[], Charset)
public String(byte[] arg0, Charset arg1)
Parameters
String(byte[], int, int)
public String(byte[] arg0, int arg1, int arg2)
Parameters
String(byte[], int, int, String)
public String(byte[] arg0, int arg1, int arg2, String arg3)
Parameters
Exceptions
String(byte[], int, int, Charset)
public String(byte[] arg0, int arg1, int arg2, Charset arg3)
Parameters
String(char[])
public String(char[] arg0)
Parameters
String(char[], int, int)
public String(char[] arg0, int arg1, int arg2)
Parameters
String(int[], int, int)
public String(int[] arg0, int arg1, int arg2)
Parameters
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
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Bytes
public byte[] Bytes { get; }
Property Value
- byte[]
CASE_INSENSITIVE_ORDER
public static Comparator CASE_INSENSITIVE_ORDER { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
this[int]
Returns the character at index
public char this[int index] { get; }
Parameters
index
intThe index of the character to return
Property Value
Methods
CharAt(int)
public char CharAt(int arg0)
Parameters
Returns
Chars()
public IntStream Chars()
Returns
CodePointAt(int)
public int CodePointAt(int arg0)
Parameters
Returns
CodePointBefore(int)
public int CodePointBefore(int arg0)
Parameters
Returns
CodePointCount(int, int)
public int CodePointCount(int arg0, int arg1)
Parameters
Returns
CodePoints()
public IntStream CodePoints()
Returns
CompareTo(String)
public int CompareTo(String arg0)
Parameters
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
CompareToIgnoreCase(String)
public int CompareToIgnoreCase(String arg0)
Parameters
Returns
Concat(String)
public String Concat(String arg0)
Parameters
Returns
Contains(CharSequence)
public bool Contains(CharSequence arg0)
Parameters
arg0
CharSequence
Returns
ContentEquals(CharSequence)
public bool ContentEquals(CharSequence arg0)
Parameters
arg0
CharSequence
Returns
ContentEquals(StringBuffer)
public bool ContentEquals(StringBuffer arg0)
Parameters
arg0
StringBuffer
Returns
CopyValueOf(char[])
public static String CopyValueOf(char[] arg0)
Parameters
Returns
CopyValueOf(char[], int, int)
public static String CopyValueOf(char[] arg0, int arg1, int arg2)
Parameters
Returns
EndsWith(String)
public bool EndsWith(String arg0)
Parameters
Returns
EqualsIgnoreCase(String)
public bool EqualsIgnoreCase(String arg0)
Parameters
Returns
Format(String, params object[])
public static String Format(String arg0, params object[] arg1)
Parameters
Returns
Format(Locale, String, params object[])
public static String Format(Locale arg0, String arg1, params object[] arg2)
Parameters
Returns
GetBytes(String)
public byte[] GetBytes(String arg0)
Parameters
Returns
Exceptions
GetBytes(Charset)
public byte[] GetBytes(Charset arg0)
Parameters
Returns
GetChars(int, int, char[], int)
public void GetChars(int arg0, int arg1, char[] arg2, int arg3)
Parameters
IndexOf(String)
public int IndexOf(String arg0)
Parameters
Returns
IndexOf(String, int)
public int IndexOf(String arg0, int arg1)
Parameters
Returns
IndexOf(int)
public int IndexOf(int arg0)
Parameters
Returns
IndexOf(int, int)
public int IndexOf(int arg0, int arg1)
Parameters
Returns
Intern()
public String Intern()
Returns
IsBlank()
public bool IsBlank()
Returns
IsEmpty()
public bool IsEmpty()
Returns
Join(CharSequence, params CharSequence[])
public static String Join(CharSequence arg0, params CharSequence[] arg1)
Parameters
arg0
CharSequencearg1
CharSequence[]
Returns
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
CharSequencearg1
Iterable<Arg1ExtendsJava_Lang_CharSequence>
Returns
Type Parameters
Arg1ExtendsJava_Lang_CharSequence
LastIndexOf(String)
public int LastIndexOf(String arg0)
Parameters
Returns
LastIndexOf(String, int)
public int LastIndexOf(String arg0, int arg1)
Parameters
Returns
LastIndexOf(int)
public int LastIndexOf(int arg0)
Parameters
Returns
LastIndexOf(int, int)
public int LastIndexOf(int arg0, int arg1)
Parameters
Returns
Length()
public int Length()
Returns
Lines()
public Stream<String> Lines()
Returns
Matches(String)
public bool Matches(String arg0)
Parameters
Returns
OffsetByCodePoints(int, int)
public int OffsetByCodePoints(int arg0, int arg1)
Parameters
Returns
RegionMatches(bool, int, String, int, int)
public bool RegionMatches(bool arg0, int arg1, String arg2, int arg3, int arg4)
Parameters
Returns
RegionMatches(int, String, int, int)
public bool RegionMatches(int arg0, String arg1, int arg2, int arg3)
Parameters
Returns
Repeat(int)
public String Repeat(int arg0)
Parameters
Returns
Replace(CharSequence, CharSequence)
public String Replace(CharSequence arg0, CharSequence arg1)
Parameters
arg0
CharSequencearg1
CharSequence
Returns
Replace(char, char)
public String Replace(char arg0, char arg1)
Parameters
Returns
ReplaceAll(String, String)
public String ReplaceAll(String arg0, String arg1)
Parameters
Returns
ReplaceFirst(String, String)
public String ReplaceFirst(String arg0, String arg1)
Parameters
Returns
Split(String)
public String[] Split(String arg0)
Parameters
Returns
Split(String, int)
public String[] Split(String arg0, int arg1)
Parameters
Returns
StartsWith(String)
public bool StartsWith(String arg0)
Parameters
Returns
StartsWith(String, int)
public bool StartsWith(String arg0, int arg1)
Parameters
Returns
Strip()
public String Strip()
Returns
StripLeading()
public String StripLeading()
Returns
StripTrailing()
public String StripTrailing()
Returns
SubSequence(int, int)
public CharSequence SubSequence(int arg0, int arg1)
Parameters
Returns
Substring(int)
public String Substring(int arg0)
Parameters
Returns
Substring(int, int)
public String Substring(int arg0, int arg1)
Parameters
Returns
ToCharArray()
public char[] ToCharArray()
Returns
ToJVM(string)
Returns the String from the clrValue
instance
public static String ToJVM(string clrValue)
Parameters
Returns
ToLowerCase()
public String ToLowerCase()
Returns
ToLowerCase(Locale)
public String ToLowerCase(Locale arg0)
Parameters
Returns
ToUpperCase()
public String ToUpperCase()
Returns
ToUpperCase(Locale)
public String ToUpperCase(Locale arg0)
Parameters
Returns
Trim()
public String Trim()
Returns
ValueOf(bool)
public static String ValueOf(bool arg0)
Parameters
Returns
ValueOf(char)
public static String ValueOf(char arg0)
Parameters
Returns
ValueOf(char[])
public static String ValueOf(char[] arg0)
Parameters
Returns
ValueOf(char[], int, int)
public static String ValueOf(char[] arg0, int arg1, int arg2)
Parameters
Returns
ValueOf(double)
public static String ValueOf(double arg0)
Parameters
Returns
ValueOf(int)
public static String ValueOf(int arg0)
Parameters
Returns
ValueOf(long)
public static String ValueOf(long arg0)
Parameters
Returns
ValueOf(object)
public static String ValueOf(object arg0)
Parameters
Returns
ValueOf(float)
public static String ValueOf(float arg0)
Parameters
Returns
Operators
operator +(String, String)
Binary operator managing concatanation within JVM
public static String operator +(String a, String b)
Parameters
Returns
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
implicit operator CharSequence(String)
Converter from String to CharSequence
public static implicit operator CharSequence(String t)
Parameters
t
String
Returns
implicit operator Comparable(String)
Converter from String to Comparable
public static implicit operator Comparable(String t)
Parameters
t
String
Returns
implicit operator string(String)
public static implicit operator string(String b)
Parameters
b
String
Returns
implicit operator String(string)
public static implicit operator String(string b)
Parameters
b
string