Table of Contents

Class Collections

Namespace
Java.Util
Assembly
MASES.JNet.dll
public class Collections : JVMBridgeBase<Collections>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Collections>
Collections
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Collections>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Collections>.IsAssignableFrom<T>()
JVMBridgeBase<Collections>.Execute<T>(params T[])
JVMBridgeBase<Collections>.DynBridgeClazz
JVMBridgeBase<Collections>.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

Collections()

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

public Collections()

Collections(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 Collections(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

EMPTY_LIST

public static List EMPTY_LIST { get; }

Property Value

List

EMPTY_MAP

public static Map EMPTY_MAP { get; }

Property Value

Map

EMPTY_SET

public static Set EMPTY_SET { get; }

Property Value

Set

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

Methods

AddAll<Arg0objectSuperT, T>(Collection<Arg0objectSuperT>, params T[])

public static bool AddAll<Arg0objectSuperT, T>(Collection<Arg0objectSuperT> arg0, params T[] arg1) where Arg0objectSuperT : T

Parameters

arg0 Collection<Arg0objectSuperT>

Collection

arg1 T[]

T

Returns

bool

bool

Type Parameters

Arg0objectSuperT

T

T

AsLifoQueue<T>(Deque<T>)

public static Queue<T> AsLifoQueue<T>(Deque<T> arg0)

Parameters

arg0 Deque<T>

Deque

Returns

Queue<T>

Queue

Type Parameters

T

BinarySearch<Arg0ExtendsT, T, Arg2objectSuperT>(List<Arg0ExtendsT>, T, Comparator<Arg2objectSuperT>)

public static int BinarySearch<Arg0ExtendsT, T, Arg2objectSuperT>(List<Arg0ExtendsT> arg0, T arg1, Comparator<Arg2objectSuperT> arg2) where Arg0ExtendsT : T where Arg2objectSuperT : T

Parameters

arg0 List<Arg0ExtendsT>

List

arg1 T

T

arg2 Comparator<Arg2objectSuperT>

Comparator

Returns

int

int

Type Parameters

Arg0ExtendsT

T

T
Arg2objectSuperT

T

BinarySearch<Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_, Arg0objectSuperT, T>(List<Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_>, T)

public static int BinarySearch<Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_, Arg0objectSuperT, T>(List<Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_> arg0, T arg1) where Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_ : Comparable<Arg0objectSuperT> where Arg0objectSuperT : T

Parameters

arg0 List<Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_>

List

arg1 T

T

Returns

int

int

Type Parameters

Arg0ExtendsJava_Lang_Comparable_Arg0objectSuperT_

Comparable<T>

Arg0objectSuperT

T

T

CheckedCollectionMethod<E>(Collection<E>, Class)

public static Collection<E> CheckedCollectionMethod<E>(Collection<E> arg0, Class arg1)

Parameters

arg0 Collection<E>

Collection

arg1 Class

Class

Returns

Collection<E>

Collection

Type Parameters

E

CheckedListMethod<E>(List<E>, Class)

public static List<E> CheckedListMethod<E>(List<E> arg0, Class arg1)

Parameters

arg0 List<E>

List

arg1 Class

Class

Returns

List<E>

List

Type Parameters

E

CheckedMapMethod<K, V>(Map<K, V>, Class, Class)

public static Map<K, V> CheckedMapMethod<K, V>(Map<K, V> arg0, Class arg1, Class arg2)

Parameters

arg0 Map<K, V>

Map

arg1 Class

Class

arg2 Class

Class

Returns

Map<K, V>

Map

Type Parameters

K
V

CheckedNavigableMapMethod<K, V>(NavigableMap<K, V>, Class, Class)

public static NavigableMap<K, V> CheckedNavigableMapMethod<K, V>(NavigableMap<K, V> arg0, Class arg1, Class arg2)

Parameters

arg0 NavigableMap<K, V>

NavigableMap

arg1 Class

Class

arg2 Class

Class

Returns

NavigableMap<K, V>

NavigableMap

Type Parameters

K
V

CheckedNavigableSetMethod<E>(NavigableSet<E>, Class)

public static NavigableSet<E> CheckedNavigableSetMethod<E>(NavigableSet<E> arg0, Class arg1)

Parameters

arg0 NavigableSet<E>

NavigableSet

arg1 Class

Class

Returns

NavigableSet<E>

NavigableSet

Type Parameters

E

CheckedQueueMethod<E>(Queue<E>, Class)

public static Queue<E> CheckedQueueMethod<E>(Queue<E> arg0, Class arg1)

Parameters

arg0 Queue<E>

Queue

arg1 Class

Class

Returns

Queue<E>

Queue

Type Parameters

E

CheckedSetMethod<E>(Set<E>, Class)

public static Set<E> CheckedSetMethod<E>(Set<E> arg0, Class arg1)

Parameters

arg0 Set<E>

Set

arg1 Class

Class

Returns

Set<E>

Set

Type Parameters

E

CheckedSortedMapMethod<K, V>(SortedMap<K, V>, Class, Class)

public static SortedMap<K, V> CheckedSortedMapMethod<K, V>(SortedMap<K, V> arg0, Class arg1, Class arg2)

Parameters

arg0 SortedMap<K, V>

SortedMap

arg1 Class

Class

arg2 Class

Class

Returns

SortedMap<K, V>

SortedMap

Type Parameters

K
V

CheckedSortedSetMethod<E>(SortedSet<E>, Class)

public static SortedSet<E> CheckedSortedSetMethod<E>(SortedSet<E> arg0, Class arg1)

Parameters

arg0 SortedSet<E>

SortedSet

arg1 Class

Class

Returns

SortedSet<E>

SortedSet

Type Parameters

E

Copy<Arg0objectSuperT, T, Arg1ExtendsT>(List<Arg0objectSuperT>, List<Arg1ExtendsT>)

public static void Copy<Arg0objectSuperT, T, Arg1ExtendsT>(List<Arg0objectSuperT> arg0, List<Arg1ExtendsT> arg1) where Arg0objectSuperT : T where Arg1ExtendsT : T

Parameters

arg0 List<Arg0objectSuperT>

List

arg1 List<Arg1ExtendsT>

List

Type Parameters

Arg0objectSuperT

T

T
Arg1ExtendsT

T

Disjoint(Collection<object>, Collection<object>)

public static bool Disjoint(Collection<object> arg0, Collection<object> arg1)

Parameters

arg0 Collection<object>

Collection

arg1 Collection<object>

Collection

Returns

bool

bool

EmptyEnumerationMethod<T>()

public static Enumeration<T> EmptyEnumerationMethod<T>()

Returns

Enumeration<T>

Enumeration

Type Parameters

T

EmptyIteratorMethod<T>()

public static Iterator<T> EmptyIteratorMethod<T>()

Returns

Iterator<T>

Iterator

Type Parameters

T

EmptyIterator<T>()

public static Iterator<T> EmptyIterator<T>()

Returns

Iterator<T>

Iterator

Type Parameters

T

EmptyListIteratorMethod<T>()

public static ListIterator<T> EmptyListIteratorMethod<T>()

Returns

ListIterator<T>

ListIterator

Type Parameters

T

EmptyListIterator<T>()

public static ListIterator<T> EmptyListIterator<T>()

Returns

ListIterator<T>

ListIterator

Type Parameters

T

EmptyListMethod<T>()

public static List<T> EmptyListMethod<T>()

Returns

List<T>

List

Type Parameters

T

EmptyList<T>()

public static List<T> EmptyList<T>()

Returns

List<T>

List

Type Parameters

T

EmptyMapMethod<K, V>()

public static Map<K, V> EmptyMapMethod<K, V>()

Returns

Map<K, V>

Map

Type Parameters

K
V

EmptyMap<K, V>()

public static Map<K, V> EmptyMap<K, V>()

Returns

Map<K, V>

Map

Type Parameters

K
V

EmptyNavigableMap<K, V>()

public static NavigableMap<K, V> EmptyNavigableMap<K, V>()

Returns

NavigableMap<K, V>

NavigableMap

Type Parameters

K
V

EmptyNavigableSet<E>()

public static NavigableSet<E> EmptyNavigableSet<E>()

Returns

NavigableSet<E>

NavigableSet

Type Parameters

E

EmptySetMethod<T>()

public static Set<T> EmptySetMethod<T>()

Returns

Set<T>

Set

Type Parameters

T

EmptySet<T>()

public static Set<T> EmptySet<T>()

Returns

Set<T>

Set

Type Parameters

T

EmptySortedMap<K, V>()

public static SortedMap<K, V> EmptySortedMap<K, V>()

Returns

SortedMap<K, V>

SortedMap

Type Parameters

K
V

EmptySortedSet<E>()

public static SortedSet<E> EmptySortedSet<E>()

Returns

SortedSet<E>

SortedSet

Type Parameters

E

Enumeration<T>(Collection<T>)

public static Enumeration<T> Enumeration<T>(Collection<T> arg0)

Parameters

arg0 Collection<T>

Collection

Returns

Enumeration<T>

Enumeration

Type Parameters

T

Fill<Arg0objectSuperT, T>(List<Arg0objectSuperT>, T)

public static void Fill<Arg0objectSuperT, T>(List<Arg0objectSuperT> arg0, T arg1) where Arg0objectSuperT : T

Parameters

arg0 List<Arg0objectSuperT>

List

arg1 T

T

Type Parameters

Arg0objectSuperT

T

T

Frequency(Collection<object>, object)

public static int Frequency(Collection<object> arg0, object arg1)

Parameters

arg0 Collection<object>

Collection

arg1 object

object

Returns

int

int

IndexOfSubList(List<object>, List<object>)

public static int IndexOfSubList(List<object> arg0, List<object> arg1)

Parameters

arg0 List<object>

List

arg1 List<object>

List

Returns

int

int

LastIndexOfSubList(List<object>, List<object>)

public static int LastIndexOfSubList(List<object> arg0, List<object> arg1)

Parameters

arg0 List<object>

List

arg1 List<object>

List

Returns

int

int

List<T>(Enumeration<T>)

public static ArrayList<T> List<T>(Enumeration<T> arg0)

Parameters

arg0 Enumeration<T>

Enumeration

Returns

ArrayList<T>

ArrayList

Type Parameters

T

Max<T, Arg0ExtendsT>(Collection<Arg0ExtendsT>)

public static T Max<T, Arg0ExtendsT>(Collection<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Collection<Arg0ExtendsT>

Collection

Returns

T

T

Type Parameters

T
Arg0ExtendsT

T

Max<T, Arg0ExtendsT, Arg1objectSuperT>(Collection<Arg0ExtendsT>, Comparator<Arg1objectSuperT>)

public static T Max<T, Arg0ExtendsT, Arg1objectSuperT>(Collection<Arg0ExtendsT> arg0, Comparator<Arg1objectSuperT> arg1) where Arg0ExtendsT : T where Arg1objectSuperT : T

Parameters

arg0 Collection<Arg0ExtendsT>

Collection

arg1 Comparator<Arg1objectSuperT>

Comparator

Returns

T

T

Type Parameters

T
Arg0ExtendsT

T

Arg1objectSuperT

T

Min<T, Arg0ExtendsT>(Collection<Arg0ExtendsT>)

public static T Min<T, Arg0ExtendsT>(Collection<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Collection<Arg0ExtendsT>

Collection

Returns

T

T

Type Parameters

T
Arg0ExtendsT

T

Min<T, Arg0ExtendsT, Arg1objectSuperT>(Collection<Arg0ExtendsT>, Comparator<Arg1objectSuperT>)

public static T Min<T, Arg0ExtendsT, Arg1objectSuperT>(Collection<Arg0ExtendsT> arg0, Comparator<Arg1objectSuperT> arg1) where Arg0ExtendsT : T where Arg1objectSuperT : T

Parameters

arg0 Collection<Arg0ExtendsT>

Collection

arg1 Comparator<Arg1objectSuperT>

Comparator

Returns

T

T

Type Parameters

T
Arg0ExtendsT

T

Arg1objectSuperT

T

NCopies<T>(int, T)

public static List<T> NCopies<T>(int arg0, T arg1)

Parameters

arg0 int

int

arg1 T

T

Returns

List<T>

List

Type Parameters

T

NewSetFromMap<E>(Map<E, Boolean>)

public static Set<E> NewSetFromMap<E>(Map<E, Boolean> arg0)

Parameters

arg0 Map<E, Boolean>

Map

Returns

Set<E>

Set

Type Parameters

E

ReplaceAll<T>(List<T>, T, T)

public static bool ReplaceAll<T>(List<T> arg0, T arg1, T arg2)

Parameters

arg0 List<T>

List

arg1 T

T

arg2 T

T

Returns

bool

bool

Type Parameters

T

Reverse(List<object>)

public static void Reverse(List<object> arg0)

Parameters

arg0 List<object>

List

ReverseOrder<T>()

public static Comparator<T> ReverseOrder<T>()

Returns

Comparator<T>

Comparator

Type Parameters

T

ReverseOrder<T>(Comparator<T>)

public static Comparator<T> ReverseOrder<T>(Comparator<T> arg0)

Parameters

arg0 Comparator<T>

Comparator

Returns

Comparator<T>

Comparator

Type Parameters

T

Rotate(List<object>, int)

public static void Rotate(List<object> arg0, int arg1)

Parameters

arg0 List<object>

List

arg1 int

int

Shuffle(List<object>)

public static void Shuffle(List<object> arg0)

Parameters

arg0 List<object>

List

Shuffle(List<object>, Random)

public static void Shuffle(List<object> arg0, Random arg1)

Parameters

arg0 List<object>

List

arg1 Random

Random

SingletonListMethod<T>(T)

public static List<T> SingletonListMethod<T>(T arg0)

Parameters

arg0 T

T

Returns

List<T>

List

Type Parameters

T

SingletonList<E>(E)

public static List<E> SingletonList<E>(E element)

Parameters

element E

Returns

List<E>

List

Type Parameters

E

SingletonMapMethod<K, V>(K, V)

public static Map<K, V> SingletonMapMethod<K, V>(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Returns

Map<K, V>

Map

Type Parameters

K
V

SingletonMap<K, V>(K, V)

public static Map<K, V> SingletonMap<K, V>(K key, V value)

Parameters

key K
value V

Returns

Map<K, V>

Map

Type Parameters

K
V

Singleton<T>(T)

public static Set<T> Singleton<T>(T arg0)

Parameters

arg0 T

T

Returns

Set<T>

Set

Type Parameters

T

Sort<T>(List<T>)

public static void Sort<T>(List<T> arg0)

Parameters

arg0 List<T>

List

Type Parameters

T

Sort<T, Arg1objectSuperT>(List<T>, Comparator<Arg1objectSuperT>)

public static void Sort<T, Arg1objectSuperT>(List<T> arg0, Comparator<Arg1objectSuperT> arg1) where Arg1objectSuperT : T

Parameters

arg0 List<T>

List

arg1 Comparator<Arg1objectSuperT>

Comparator

Type Parameters

T
Arg1objectSuperT

T

Swap(List<object>, int, int)

public static void Swap(List<object> arg0, int arg1, int arg2)

Parameters

arg0 List<object>

List

arg1 int

int

arg2 int

int

SynchronizedCollectionMethod<T>(Collection<T>)

public static Collection<T> SynchronizedCollectionMethod<T>(Collection<T> arg0)

Parameters

arg0 Collection<T>

Collection

Returns

Collection<T>

Collection

Type Parameters

T

SynchronizedListMethod<T>(List<T>)

public static List<T> SynchronizedListMethod<T>(List<T> arg0)

Parameters

arg0 List<T>

List

Returns

List<T>

List

Type Parameters

T

SynchronizedMapMethod<K, V>(Map<K, V>)

public static Map<K, V> SynchronizedMapMethod<K, V>(Map<K, V> arg0)

Parameters

arg0 Map<K, V>

Map

Returns

Map<K, V>

Map

Type Parameters

K
V

SynchronizedNavigableMapMethod<K, V>(NavigableMap<K, V>)

public static NavigableMap<K, V> SynchronizedNavigableMapMethod<K, V>(NavigableMap<K, V> arg0)

Parameters

arg0 NavigableMap<K, V>

NavigableMap

Returns

NavigableMap<K, V>

NavigableMap

Type Parameters

K
V

SynchronizedNavigableSetMethod<T>(NavigableSet<T>)

public static NavigableSet<T> SynchronizedNavigableSetMethod<T>(NavigableSet<T> arg0)

Parameters

arg0 NavigableSet<T>

NavigableSet

Returns

NavigableSet<T>

NavigableSet

Type Parameters

T

SynchronizedSetMethod<T>(Set<T>)

public static Set<T> SynchronizedSetMethod<T>(Set<T> arg0)

Parameters

arg0 Set<T>

Set

Returns

Set<T>

Set

Type Parameters

T

SynchronizedSortedMapMethod<K, V>(SortedMap<K, V>)

public static SortedMap<K, V> SynchronizedSortedMapMethod<K, V>(SortedMap<K, V> arg0)

Parameters

arg0 SortedMap<K, V>

SortedMap

Returns

SortedMap<K, V>

SortedMap

Type Parameters

K
V

SynchronizedSortedSetMethod<T>(SortedSet<T>)

public static SortedSet<T> SynchronizedSortedSetMethod<T>(SortedSet<T> arg0)

Parameters

arg0 SortedSet<T>

SortedSet

Returns

SortedSet<T>

SortedSet

Type Parameters

T

UnmodifiableCollectionMethod<T, Arg0ExtendsT>(Collection<Arg0ExtendsT>)

public static Collection<T> UnmodifiableCollectionMethod<T, Arg0ExtendsT>(Collection<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Collection<Arg0ExtendsT>

Collection

Returns

Collection<T>

Collection

Type Parameters

T
Arg0ExtendsT

T

UnmodifiableListMethod<T, Arg0ExtendsT>(List<Arg0ExtendsT>)

public static List<T> UnmodifiableListMethod<T, Arg0ExtendsT>(List<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 List<Arg0ExtendsT>

List

Returns

List<T>

List

Type Parameters

T
Arg0ExtendsT

T

UnmodifiableMapMethod<K, V, Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV>)

public static Map<K, V> UnmodifiableMapMethod<K, V, Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV> arg0) where Arg0ExtendsK : K where Arg0ExtendsV : V

Parameters

arg0 Map<Arg0ExtendsK, Arg0ExtendsV>

Map

Returns

Map<K, V>

Map

Type Parameters

K
V
Arg0ExtendsK

K

Arg0ExtendsV

V

UnmodifiableNavigableMapMethod<K, V, Arg0ExtendsV>(NavigableMap<K, Arg0ExtendsV>)

public static NavigableMap<K, V> UnmodifiableNavigableMapMethod<K, V, Arg0ExtendsV>(NavigableMap<K, Arg0ExtendsV> arg0) where Arg0ExtendsV : V

Parameters

arg0 NavigableMap<K, Arg0ExtendsV>

NavigableMap

Returns

NavigableMap<K, V>

NavigableMap

Type Parameters

K
V
Arg0ExtendsV

V

UnmodifiableNavigableSetMethod<T>(NavigableSet<T>)

public static NavigableSet<T> UnmodifiableNavigableSetMethod<T>(NavigableSet<T> arg0)

Parameters

arg0 NavigableSet<T>

NavigableSet

Returns

NavigableSet<T>

NavigableSet

Type Parameters

T

UnmodifiableSetMethod<T, Arg0ExtendsT>(Set<Arg0ExtendsT>)

public static Set<T> UnmodifiableSetMethod<T, Arg0ExtendsT>(Set<Arg0ExtendsT> arg0) where Arg0ExtendsT : T

Parameters

arg0 Set<Arg0ExtendsT>

Set

Returns

Set<T>

Set

Type Parameters

T
Arg0ExtendsT

T

UnmodifiableSortedMapMethod<K, V, Arg0ExtendsV>(SortedMap<K, Arg0ExtendsV>)

public static SortedMap<K, V> UnmodifiableSortedMapMethod<K, V, Arg0ExtendsV>(SortedMap<K, Arg0ExtendsV> arg0) where Arg0ExtendsV : V

Parameters

arg0 SortedMap<K, Arg0ExtendsV>

SortedMap

Returns

SortedMap<K, V>

SortedMap

Type Parameters

K
V
Arg0ExtendsV

V

UnmodifiableSortedSetMethod<T>(SortedSet<T>)

public static SortedSet<T> UnmodifiableSortedSetMethod<T>(SortedSet<T> arg0)

Parameters

arg0 SortedSet<T>

SortedSet

Returns

SortedSet<T>

SortedSet

Type Parameters

T