O'Reilly logo

Groovy: Grundlagen und fortgeschrittene Techniken by Joachim Baumann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

535
A Das GDK – Groovy Development Kit
A.1 GDK-Methoden (496 Methoden)
In dieser Liste finden Sie sämtliche Methoden, mit denen Groovy Java-
Klassen beziehungsweise primitive Datentypen erweitert. Die Liste
bezieht sich auf die Version 1.5 von Groovy und dient als Kurzrefe-
renz.
A.1.1 Normale Klassen
BigDecimal (4 Methoden)
void downto(Number to, Closure closure)
Number multiply(BigInteger right)
Number multiply(Double right)
void upto(Number to, Closure closure)
BigInteger (2 Methoden)
void downto(Number to, Closure closure)
void upto(Number to, Closure closure)
BitSet (8 Methoden)
BitSet and(BitSet right)
BitSet bitwiseNegate()
BitSet getAt(IntRange range)
boolean getAt(int index)
BitSet or(BitSet right)
void putAt(IntRange range, boolean value)
void putAt(int index, boolean value)
BitSet xor(BitSet right)
A Das GDK – Groovy Development Kit536
Boolean (3 Methoden)
Boolean and(Boolean right)
Boolean or(Boolean right)
Boolean xor(Boolean right)
BufferedReader (1 Methode)
String getText()
BufferedWriter (1 Methode)
void writeLine(String line)
Byte[] (1 Methode)
Writable encodeBase64()
CharSequence (5 Methoden)
CharSequence getAt(Collection indices)
CharSequence getAt(EmptyRange range)
CharSequence getAt(IntRange range)
CharSequence getAt(Range range)
CharSequence getAt(int index)
Character (14 Methoden)
int compareTo(Character right)
int compareTo(Number right)
Number div(Character right)
Number div(Number right)
Number intdiv(Character right)
Number intdiv(Number right)
Number minus(Character right)
Number minus(Number right)
Number multiply(Character right)
Number multiply(Number right)
Number next()
Number plus(Character right)
Number plus(Number right)
Number previous()
537A.1 GDK-Methoden (496 Methoden)
Class (4 Methoden)
MetaClass getMetaClass()
boolean isCase(Object switchValue)
Object newInstance()
Object newInstance(Object[] args)
ClassLoader (1 Methode)
ClassLoader getRootLoader()
Closure (1 Methode)
Object asType(Class clazz)
Collection (41 Methoden)
Collection asImmutable()
List asList()
Collection asSynchronized()
Object asType(Class clazz)
List collect(Closure closure)
Collection collect(Collection collection, Closure closure)
List combinations()
int count(Object value)
boolean disjoint(Collection right)
Object find(Closure closure)
List findAll(Closure closure)
List getAt(String property)
Map groupBy(Closure closure)
Object inject(Object value, Closure closure)
List intersect(Collection right)
boolean isCase(Object switchValue)
String join(String separator)
Collection leftShift(Object value)
Object max()
Object max(Closure closure)
Object max(Comparator comparator)
Object min()
Object min(Closure closure)
Object min(Comparator comparator)
List multiply(Number factor)
Collection plus(Collection right)
Collection plus(Object right)
A Das GDK – Groovy Development Kit538
List sort()
List sort(Closure closure)
List sort(Comparator comparator)
Object sum()
Object sum(Closure closure)
Object sum(Object initialValue)
Object sum(Object initialValue, Closure closure)
List toList()
String toListString()
String toString()
List transpose()
Collection unique()
Collection unique(Closure closure)
Collection unique(Comparator comparator)
DataInputStream (1 Methode)
Iterator iterator()
Date (4 Methoden)
Date minus(int days)
Date next()
Date plus(int days)
Date previous()
java.sql.Date (4 Methoden)
java.sql.Date minus(int days)
java.sql.Date next()
java.sql.Date plus(int days)
java.sql.Date previous()
Double (4 Methoden)
double abs()
void downto(Number to, Closure closure)
long round()
void upto(Number to, Closure closure)
Enumeration (2 Methoden)
Iterator iterator()
List toList()
539A.1 GDK-Methoden (496 Methoden)
File (52 Methoden)
void append(Object text)
void append(Object text, String charset)
Object asType(Class c)
File asWritable()
File asWritable(String encoding)
void eachByte(Closure closure)
void eachDir(Closure closure)
void eachDirMatch(final Object filter, final Closure closure)
void eachDirRecurse(final Closure closure)
void eachFile(final Closure closure)
void eachFileMatch(final Object filter, final Closure closure)
void eachFileRecurse(Closure closure)
void eachLine(Closure closure)
void eachObject(Closure closure)
Writable filterLine(Closure closure)
void filterLine(Writer writer, Closure closure)
String getText()
String getText(String charset)
File leftShift(Object text)
DataInputStream newDataInputStream()
DataOutputStream newDataOutputStream()
BufferedInputStream newInputStream()
ObjectInputStream newObjectInputStream()
ObjectOutputStream newObjectOutputStream()
BufferedOutputStream newOutputStream()
PrintWriter newPrintWriter()
PrintWriter newPrintWriter(String charset)
BufferedReader newReader()
BufferedReader newReader(String charset)
BufferedWriter newWriter()
BufferedWriter newWriter(String charset)
BufferedWriter newWriter(String charset, boolean append)
BufferedWriter newWriter(boolean append)
byte[] readBytes()
List readLines()
long size()
void splitEachLine(String sep, Closure closure)
void withDataInputStream(Closure closure)
void withDataOutputStream(Closure closure)
void withInputStream(Closure closure)
void withObjectInputStream(Closure closure)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required