|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.runtime.DefaultGroovyMethodsSupport
public class DefaultGroovyMethodsSupport
Support methods for DefaultGroovyMethods and PluginDefaultMethods.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultGroovyMethodsSupport.RangeInfo
|
| Constructor Summary | |
|---|---|
DefaultGroovyMethodsSupport()
|
|
| Method Summary | ||
|---|---|---|
protected static
|
cloneSimilarCollection(java.util.Collection<T> orig,
int newCapacity)
|
|
protected static
|
cloneSimilarMap(java.util.Map<K,V> orig)
|
|
static void |
closeQuietly(java.io.Closeable c)
Close the Closeable. |
|
static void |
closeWithWarning(java.io.Closeable c)
Close the Closeable. |
|
protected static
|
createSimilarArray(T[] orig,
int newCapacity)
|
|
protected static
|
createSimilarCollection(java.util.Collection<T> collection)
|
|
protected static
|
createSimilarCollection(java.util.Collection<T> orig,
int newCapacity)
|
|
protected static
|
createSimilarList(java.util.List<T> orig,
int newCapacity)
|
|
protected static
|
createSimilarMap(java.util.Map<K,V> orig)
|
|
protected static java.util.Collection |
createSimilarOrDefaultCollection(java.lang.Object object)
|
|
protected static
|
createSimilarSet(java.util.Set<T> orig)
|
|
protected static int |
normaliseIndex(int i,
int size)
This converts a possibly negative index to a real index into the array. |
|
protected static boolean |
sameType(java.util.Collection[] cols)
Determines if all items of this array are of the same type. |
|
protected static DefaultGroovyMethodsSupport.RangeInfo |
subListBorders(int size,
EmptyRange range)
|
|
protected static DefaultGroovyMethodsSupport.RangeInfo |
subListBorders(int size,
Range range)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultGroovyMethodsSupport()
| Method Detail |
|---|
protected static DefaultGroovyMethodsSupport.RangeInfo subListBorders(int size,
Range range)
protected static DefaultGroovyMethodsSupport.RangeInfo subListBorders(int size,
EmptyRange range)
protected static int normaliseIndex(int i,
int size)
i - the unnormalised indexsize - the array size
public static void closeWithWarning(java.io.Closeable c)
c - the thing to closepublic static void closeQuietly(java.io.Closeable c)
c - the thing to close
protected static <T> java.util.Collection<T> cloneSimilarCollection(java.util.Collection<T> orig,
int newCapacity)
protected static java.util.Collection createSimilarOrDefaultCollection(java.lang.Object object)
protected static <T> java.util.Collection<T> createSimilarCollection(java.util.Collection<T> collection)
protected static <T> java.util.Collection<T> createSimilarCollection(java.util.Collection<T> orig,
int newCapacity)
protected static <T> java.util.List<T> createSimilarList(java.util.List<T> orig,
int newCapacity)
protected static <T> T[] createSimilarArray(T[] orig,
int newCapacity)
protected static <T> java.util.Set<T> createSimilarSet(java.util.Set<T> orig)
protected static <K,V> java.util.Map<K,V> createSimilarMap(java.util.Map<K,V> orig)
protected static <K,V> java.util.Map<K,V> cloneSimilarMap(java.util.Map<K,V> orig)
protected static boolean sameType(java.util.Collection[] cols)
cols - an array of collections
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||