| 
|||||||||
| 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(Collection<T> orig,
                       int newCapacity)
 | 
|
protected static
 | 
cloneSimilarMap(Map<K,V> orig)
 | 
|
static void | 
closeQuietly(Closeable c)
Close the Closeable.  | 
|
static void | 
closeWithWarning(Closeable c)
Close the Closeable.  | 
|
protected static
 | 
createSimilarArray(T[] orig,
                   int newCapacity)
 | 
|
protected static
 | 
createSimilarCollection(Collection<T> collection)
 | 
|
protected static
 | 
createSimilarCollection(Collection<T> orig,
                        int newCapacity)
 | 
|
protected static
 | 
createSimilarList(List<T> orig,
                  int newCapacity)
 | 
|
protected static
 | 
createSimilarMap(Map<K,V> orig)
 | 
|
protected static Collection | 
createSimilarOrDefaultCollection(Object object)
 | 
|
protected static
 | 
createSimilarSet(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(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(Closeable c)
c - the thing to closepublic static void closeQuietly(Closeable c)
c - the thing to close
protected static <T> Collection<T> cloneSimilarCollection(Collection<T> orig,
                                                          int newCapacity)
protected static Collection createSimilarOrDefaultCollection(Object object)
protected static <T> Collection<T> createSimilarCollection(Collection<T> collection)
protected static <T> Collection<T> createSimilarCollection(Collection<T> orig,
                                                           int newCapacity)
protected static <T> List<T> createSimilarList(List<T> orig,
                                               int newCapacity)
protected static <T> T[] createSimilarArray(T[] orig,
                                            int newCapacity)
protected static <T> Set<T> createSimilarSet(Set<T> orig)
protected static <K,V> Map<K,V> createSimilarMap(Map<K,V> orig)
protected static <K,V> Map<K,V> cloneSimilarMap(Map<K,V> orig)
protected static boolean sameType(Collection[] cols)
cols - an array of collections
  | 
Copyright © 2003-2012 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||