CollectionHelpers
Contents
[
Hide
]
Inheritance: java.lang.Object
public class CollectionHelpers
Functions for working with Collections
Constructors
| Constructor | Description |
|---|---|
| CollectionHelpers() |
Methods
| Method | Description |
|---|---|
| Increment by “1” value of the key | |
| Try update max value of the key | |
| Use if value contains list of all values with a key | |
| containsSubsequence(byte[] sequence, int index, byte[] subsequence) | |
| equals(Object arg0) | |
| findKeysOfMax(System.Collections.Generic.Dictionary<Integer,Integer> dictionary) | Finds all keys of max value. |
| getClass() | |
| hashCode() | |
| intListToString(System.Collections.Generic.IGenericList |
|
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
CollectionHelpers()
public CollectionHelpers()
incKeyValue(System.Collections.Generic.Dictionary<TKey,Integer> dictionary, TKey key)
public static void <TKey>incKeyValue(System.Collections.Generic.Dictionary<TKey,Integer> dictionary, TKey key)
Increment by “1” value of the key
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dictionary | com.aspose.ms.System.Collections.Generic.Dictionary<TKey,java.lang.Integer> | the dictionary |
| key | TKey | the specified key |
TKey : Type of class for the dictionary |
updateMaxValue(System.Collections.Generic.Dictionary<TKey,Integer> dictionary, TKey key, int value)
public static void <TKey>updateMaxValue(System.Collections.Generic.Dictionary<TKey,Integer> dictionary, TKey key, int value)
Try update max value of the key
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dictionary | com.aspose.ms.System.Collections.Generic.Dictionary<TKey,java.lang.Integer> | the dictionary |
| key | TKey | the specified key |
| value | int | the specified value |
TKey : Type of class for the dictionary |
addKeyValue(System.Collections.Generic.Dictionary<Integer,ArrayList> dictionary, int key, TValueItem value)
public static void <TValueItem>addKeyValue(System.Collections.Generic.Dictionary<Integer,ArrayList<TValueItem>> dictionary, int key, TValueItem value)
Use if value contains list of all values with a key
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dictionary | com.aspose.ms.System.Collections.Generic.Dictionary<java.lang.Integer,java.util.ArrayList |
|
| key | int | |
| value | TValueItem |
containsSubsequence(byte[] sequence, int index, byte[] subsequence)
public static boolean containsSubsequence(byte[] sequence, int index, byte[] subsequence)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sequence | byte[] | |
| index | int | |
| subsequence | byte[] |
Returns: boolean
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findKeysOfMax(System.Collections.Generic.Dictionary<Integer,Integer> dictionary)
public static List<Integer> findKeysOfMax(System.Collections.Generic.Dictionary<Integer,Integer> dictionary)
Finds all keys of max value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dictionary | com.aspose.ms.System.Collections.Generic.Dictionary<java.lang.Integer,java.lang.Integer> | Input dictionary |
Returns: List - Keys of max value
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
hashCode()
public native int hashCode()
Returns: int
intListToString(System.Collections.Generic.IGenericList intList)
public static String intListToString(System.Collections.Generic.IGenericList<Integer> intList)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| intList | com.aspose.ms.System.Collections.Generic.IGenericList<java.lang.Integer> |
Returns: java.lang.String
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |