org.erights.e.meta.java.lang
Class StringBufferSugar

java.lang.Object
  |
  +--org.erights.e.meta.java.lang.StringBufferSugar

public class StringBufferSugar
extends Object

Untamed: A sweetener defining extra messages that may be e-sent to a StringBuffer.

Author:
Mark S. Miller

Constructor Summary
private StringBufferSugar()
          prevents instantiation
 
Method Summary
static char get(StringBuffer self, int index)
          Enabled: "bar"[2] == 'r'
static void iterate(StringBuffer self, AssocFunc func)
          Enabled: Considered as a map, an array is a ConstMap from indices to values, so iterate() will call func with each successive pair of index and value, in ascending index order.
static int size(StringBuffer self)
          Enabled:
static String snapshot(StringBuffer self)
          Enabled: Just like the Java-level toString, but avoids confusion with Object.toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferSugar

private StringBufferSugar()
prevents instantiation

Method Detail

get

public static char get(StringBuffer self,
                       int index)
Enabled: "bar"[2] == 'r'


iterate

public static void iterate(StringBuffer self,
                           AssocFunc func)
Enabled: Considered as a map, an array is a ConstMap from indices to values, so iterate() will call func with each successive pair of index and value, in ascending index order.


size

public static int size(StringBuffer self)
Enabled:


snapshot

public static String snapshot(StringBuffer self)
Enabled: Just like the Java-level toString, but avoids confusion with Object.toString().



comments?