MoreMotion Face API

Class Accumulator

Object
   |
   +--Accumulator

class Accumulator


A utility class to accumulate strings delimited with the specified delimiter.

Example:

  var a = new Accumulator(",");
  a.add("AAA");
  alert(a.toString()); // result "AAA"
  a.add("BBB");
  a.add("CCC");
  alert(a.toString()); // result "AAA,BBB,CCC"

Defined in Common.js


Constructor Summary
Accumulator(dlm)
           
 
Method Summary
 void add(s)
           Adds the given string to this accumulator
 Object toString()
           Returns the accumulated string

Constructor Detail

Accumulator

Accumulator(dlm)

Method Detail

add

void add(s)

toString

Object toString()

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011