|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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,
EmptyRange range)
|
protected static DefaultGroovyMethodsSupport.RangeInfo |
subListBorders(int size,
IntRange 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, IntRange 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(Closeable c)
c
- the thing to closepublic static void closeQuietly(Closeable c)
c
- the thing to closeprotected static Collection cloneSimilarCollection(Collection orig, int newCapacity)
protected static Collection createSimilarOrDefaultCollection(Object object)
protected static Collection createSimilarCollection(Collection collection)
protected static Collection createSimilarCollection(Collection orig, int newCapacity)
protected static List createSimilarList(List orig, int newCapacity)
protected static Set createSimilarSet(Set orig)
protected static Map createSimilarMap(Map orig)
protected static Map cloneSimilarMap(Map orig)
protected static boolean sameType(Collection[] cols)
cols
- an array of collections
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |