FileDocCategorySizeDatePackage
Transforming2.javaAPI DocExample1020Sat Sep 12 03:01:00 BST 1998None

Transforming2

public class Transforming2 extends Object
Transforming - collect objects from a container
see
com.objectspace.jgl.algorithms.Transforming
version
3.0.0
author
ObjectSpace, Inc.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Array array = new Array();
    array.add( "dog" );
    array.add( "barking animal" );
    array.add( "walking" );
    DList dlist = new DList();
    Copying.copy( array, new InsertIterator( dlist ) );

    System.out.println( "array = " + array );
    System.out.println( "dlist = " + dlist );

    System.out.println();
    System.out.println( "collect(array) = " + Transforming.collect( array.begin(), array.end(), new LengthString() ) );
    System.out.println( "collect(dlist) = " + Transforming.collect( dlist, new LengthString() ) );