system.Array Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2024 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector v. 1.14.0.0
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.Array;
import system.collections.IComparer;
import system.collections.IComparerImplementation;
import system.collections.IEqualityComparer;
import system.collections.IEqualityComparerImplementation;
import system.collections.IStructuralComparable;
import system.collections.IStructuralComparableImplementation;
import system.collections.IStructuralEquatable;
import system.collections.IStructuralEquatableImplementation;
/**
* The base .NET class managing System.Array, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Array
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.14.0.0
*/
public class Array extends NetObjectEnumerable implements system.collections.IStructuralComparable, system.collections.IStructuralEquatable {
/**
* Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: mscorlib
*/
public static final String assemblyShortName = "mscorlib";
/**
* Qualified class name: System.Array
*/
public static final String className = "System.Array";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public Array(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link Array}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link Array} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static Array cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new Array(from.getJCOInstance());
}
// Constructors section
public Array() throws Throwable {
}
// Methods section
public static int BinarySearch(Array array, int index, int length, NetObject value) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("BinarySearch", array == null ? null : array.getJCOInstance(), index, length, value == null ? null : value.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int BinarySearch(Array array, int index, int length, NetObject value, IComparer comparer) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("BinarySearch", array == null ? null : array.getJCOInstance(), index, length, value == null ? null : value.getJCOInstance(), comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int BinarySearch(Array array, NetObject value) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("BinarySearch", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int BinarySearch(Array array, NetObject value, IComparer comparer) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("BinarySearch", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance(), comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int GetLength(int dimension) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Invoke("GetLength", dimension);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int GetLowerBound(int dimension) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Invoke("GetLowerBound", dimension);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int GetUpperBound(int dimension) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Invoke("GetUpperBound", dimension);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int IndexOf(Array array, NetObject value) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("IndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int IndexOf(Array array, NetObject value, int startIndex) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("IndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance(), startIndex);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int IndexOf(Array array, NetObject value, int startIndex, int count) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("IndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance(), startIndex, count);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int LastIndexOf(Array array, NetObject value) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.RankException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("LastIndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int LastIndexOf(Array array, NetObject value, int startIndex) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.RankException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("LastIndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance(), startIndex);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static int LastIndexOf(Array array, NetObject value, int startIndex, int count) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.RankException, system.ArgumentException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (int)classType.Invoke("LastIndexOf", array == null ? null : array.getJCOInstance(), value == null ? null : value.getJCOInstance(), startIndex, count);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public long GetLongLength(int dimension) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (long)classInstance.Invoke("GetLongLength", dimension);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, int length) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.NotSupportedException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), length);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, int length1, int length2) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.NotSupportedException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), length1, length2);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, int length1, int length2, int length3) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.NotSupportedException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), length1, length2, length3);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, int... lengths) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.TypeLoadException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.TypeInitializationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), lengths);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.TypeLoadException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.TypeInitializationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut());
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, int[] lengths, int[] lowerBounds) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.TypeLoadException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.TypeInitializationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), lengths, lowerBounds);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType dupParam0, JCORefOut dupParam1, JCORefOut dupParam2) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.TypeLoadException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.TypeInitializationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut(), dupParam2.getJCRefOut());
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static Array CreateInstance(NetType elementType, long... lengths) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.NotSupportedException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objCreateInstance = (JCObject)classType.Invoke("CreateInstance", elementType == null ? null : elementType.getJCOInstance(), lengths);
return new Array(objCreateInstance);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject Clone() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objClone = (JCObject)classInstance.Invoke("Clone");
return new NetObject(objClone);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(int index) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(int index1, int index2) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index1, index2);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(int index1, int index2, int index3) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index1, index2, index3);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(int... indices) throws Throwable, system.ArgumentNullException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", (java.lang.Object)indices);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(JCORefOut dupParam0) throws Throwable, system.ArgumentNullException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", (java.lang.Object)dupParam0.getJCRefOut());
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(long index) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(long index1, long index2) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index1, index2);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(long index1, long index2, long index3) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", index1, index2, index3);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject GetValue(long... indices) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objGetValue = (JCObject)classInstance.Invoke("GetValue", (java.lang.Object)indices);
return new NetObject(objGetValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Clear(Array array, int index, int length) throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Clear", array == null ? null : array.getJCOInstance(), index, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void ConstrainedCopy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("ConstrainedCopy", sourceArray == null ? null : sourceArray.getJCOInstance(), sourceIndex, destinationArray == null ? null : destinationArray.getJCOInstance(), destinationIndex, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length) throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Copy", sourceArray == null ? null : sourceArray.getJCOInstance(), sourceIndex, destinationArray == null ? null : destinationArray.getJCOInstance(), destinationIndex, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length) throws Throwable, system.ArgumentOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Copy", sourceArray == null ? null : sourceArray.getJCOInstance(), sourceIndex, destinationArray == null ? null : destinationArray.getJCOInstance(), destinationIndex, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Copy(Array sourceArray, Array destinationArray, int length) throws Throwable, system.ArgumentNullException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Copy", sourceArray == null ? null : sourceArray.getJCOInstance(), destinationArray == null ? null : destinationArray.getJCOInstance(), length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Copy(Array sourceArray, Array destinationArray, long length) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Copy", sourceArray == null ? null : sourceArray.getJCOInstance(), destinationArray == null ? null : destinationArray.getJCOInstance(), length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void CopyTo(Array array, int index) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("CopyTo", array == null ? null : array.getJCOInstance(), index);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void CopyTo(Array array, long index) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("CopyTo", array == null ? null : array.getJCOInstance(), index);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Initialize() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Initialize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Reverse(Array array) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Reverse", array == null ? null : array.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Reverse(Array array, int index, int length) throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.RankException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Reverse", array == null ? null : array.getJCOInstance(), index, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, int index) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, int index1, int index2) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index1, index2);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, int index1, int index2, int index3) throws Throwable, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index1, index2, index3);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, int... indices) throws Throwable, system.ArgumentNullException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), indices);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject dupParam0, JCORefOut dupParam1) throws Throwable, system.ArgumentNullException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, long index) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, long index1, long index2) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index1, index2);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, long index1, long index2, long index3) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), index1, index2, index3);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void SetValue(NetObject value, long... indices) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("SetValue", value == null ? null : value.getJCOInstance(), indices);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array array) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", array == null ? null : array.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array array, int index, int length) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", array == null ? null : array.getJCOInstance(), index, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array array, int index, int length, IComparer comparer) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", array == null ? null : array.getJCOInstance(), index, length, comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array keys, Array items) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", keys == null ? null : keys.getJCOInstance(), items == null ? null : items.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array keys, Array items, int index, int length) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", keys == null ? null : keys.getJCOInstance(), items == null ? null : items.getJCOInstance(), index, length);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array keys, Array items, int index, int length, IComparer comparer) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", keys == null ? null : keys.getJCOInstance(), items == null ? null : items.getJCOInstance(), index, length, comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array keys, Array items, IComparer comparer) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", keys == null ? null : keys.getJCOInstance(), items == null ? null : items.getJCOInstance(), comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void Sort(Array array, IComparer comparer) throws Throwable, system.ArgumentNullException, system.RankException, system.ArgumentException, system.ArgumentOutOfRangeException, system.FormatException, system.InvalidOperationException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("Sort", array == null ? null : array.getJCOInstance(), comparer == null ? null : comparer.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public boolean Contains(NetObject value) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public int Add(NetObject value) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public int IndexOf(NetObject value) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public void Clear() throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public void Insert(int index, NetObject value) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public void Remove(NetObject value) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIList method available in IList to obtain an object with an invocable method
*/
@Deprecated
public void RemoveAt(int index) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIList to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIStructuralComparable method available in IStructuralComparable to obtain an object with an invocable method
*/
@Deprecated
public int CompareTo(NetObject other, IComparer comparer) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIStructuralComparable to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIStructuralEquatable method available in IStructuralEquatable to obtain an object with an invocable method
*/
@Deprecated
public boolean Equals(NetObject other, IEqualityComparer comparer) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIStructuralEquatable to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIStructuralEquatable method available in IStructuralEquatable to obtain an object with an invocable method
*/
@Deprecated
public int GetHashCode(IEqualityComparer comparer) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIStructuralEquatable to obtain the full interface.");
}
// Properties section
public boolean getIsFixedSize() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsFixedSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsReadOnly() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsReadOnly");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getIsSynchronized() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsSynchronized");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getLength() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("Length");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getRank() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("Rank");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public long getLongLength() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (long)classInstance.Get("LongLength");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject getSyncRoot() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("SyncRoot");
return new NetObject(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
}