FileDocCategorySizeDatePackage
HashSet6.javaAPI DocExample775Sat Sep 12 03:01:00 BST 1998None

HashSet6

public class HashSet6 extends Object
Bounds. Duplicates allowed.
see
com.objectspace.jgl.HashSet
version
3.0.0
author
ObjectSpace, Inc.

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

    HashSet set = new HashSet( true ); // allow duplicates
    set.add( new Integer( 3 ) );
    set.add( new Integer( 8 ) );
    set.add( new Integer( 2 ) );
    set.add( new Integer( -2 ) );
    set.add( new Integer( 3 ) );
    set.add( new Integer( 10 ) );
    System.out.println( set );

    Range range = set.equalRange( new Integer( 3 ) );
    while ( !range.begin.equals( range.end ) )
      System.out.println( "match @ " + range.begin.nextElement() );