|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.DefaultGroovyMethodsSupport
public class DefaultGroovyMethodsSupport extends Object
Support methods for DefaultGroovyMethods and PluginDefaultMethods.
Nested Class Summary | |
---|---|
protected static class |
DefaultGroovyMethodsSupport.RangeInfo
|
Method Summary | |
---|---|
protected static Collection
|
cloneSimilarCollection(Collection orig, int newCapacity)
|
protected static Map
|
cloneSimilarMap(Map orig)
|
static void
|
closeQuietly(Closeable c)
Close the Closeable. |
static void
|
closeWithWarning(Closeable c)
Close the Closeable. |
protected static Collection
|
createSimilarCollection(Collection collection)
|
protected static Collection
|
createSimilarCollection(Collection orig, int newCapacity)
|
protected static List
|
createSimilarList(List orig, int newCapacity)
|
protected static Map
|
createSimilarMap(Map orig)
|
protected static Collection
|
createSimilarOrDefaultCollection(Object object)
|
protected static Set
|
createSimilarSet(Set 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(Collection[] cols)
Determines if all items of this array are of the same type. |
protected static DefaultGroovyMethodsSupport.RangeInfo
|
subListBorders(int size, Range range)
|
protected static DefaultGroovyMethodsSupport.RangeInfo
|
subListBorders(int size, EmptyRange range)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
protected static Collection cloneSimilarCollection(Collection orig, int newCapacity)
protected static Map cloneSimilarMap(Map orig)
public static void closeQuietly(Closeable c)
c
- the thing to close
public static void closeWithWarning(Closeable c)
c
- the thing to close
protected static Collection createSimilarCollection(Collection collection)
protected static Collection createSimilarCollection(Collection orig, int newCapacity)
protected static List createSimilarList(List orig, int newCapacity)
protected static Map createSimilarMap(Map orig)
protected static Collection createSimilarOrDefaultCollection(Object object)
protected static Set createSimilarSet(Set orig)
protected static int normaliseIndex(int i, int size)
i
- the unnormalised indexsize
- the array size
protected static boolean sameType(Collection[] cols)
cols
- an array of collections
protected static DefaultGroovyMethodsSupport.RangeInfo subListBorders(int size, Range range)
protected static DefaultGroovyMethodsSupport.RangeInfo subListBorders(int size, EmptyRange range)
Copyright © 2003-2011 The Codehaus. All rights reserved.