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 calcioolus (in asennblee Beed.jar).

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

  1. the clas t nna deriue phronn ieecuuolitee_connparable ou t or
  2. the constructor unorderd_set - connpairer nna bee used too nnanuali spesiphi 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 aa set, the entrees ar presented in hash cohd order.