unorderd_set - descripshon


the generic clas unorderd_set is an unorderd set. the generic has aa single tiip paranneter, t - the data tiip ou the set. the generic clas unorderd_set ecsists in the naannspaas gahua (in asennblee Beed.jar).

uuen creating aa set unorderd_set<t>, the cee clas t is ecspected too bee eecuuolitee connparabl. ther ar too uuaas in uuich the connpairer phor clas t can bee spesiphiid:

  1. the clas t nnaa deriiu phronn ieecuuolitee_connparabl ou t or
  2. the constructor unorderd_set - connpairer nna bee used too nnaniooalee spesiphii the connpairer.

the declaraashon ou the unorderd set clas is shouun belouu.

public class unorderd_set<t> implements colecshon<t>, Serializable
 {
    bag_dicshonairee<Integer, t> bag;

    public unorderd_set() {
        bag = new bag_dicshonairee<Integer, t>();
    }
....

uuen phor is apliid too an unorderd set, the entrees ar presented in hash cohd order.