X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=benchmarks%2Fother%2FZigbeeTest%2FIoTSet.java;fp=benchmarks%2Fother%2FZigbeeTest%2FIoTSet.java;h=0000000000000000000000000000000000000000;hb=8e565033fd19c4696f67862ade27f0ebbacf5682;hp=0f316cd75c139bbde9bdff20440c2f7e86b44232;hpb=1af9249ca8ff8f6bfd7444ad1a9196bc83c8838a;p=iot2.git diff --git a/benchmarks/other/ZigbeeTest/IoTSet.java b/benchmarks/other/ZigbeeTest/IoTSet.java deleted file mode 100644 index 0f316cd..0000000 --- a/benchmarks/other/ZigbeeTest/IoTSet.java +++ /dev/null @@ -1,80 +0,0 @@ - -import java.lang.UnsupportedOperationException; - -import java.util.Collection; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Set; -import java.util.Spliterator; - - -/** Class IoTSet is the actual implementation of @config IoTSet<...>. - * Upon extracting DB information, SetInstrumenter class will use - * this class to actually instantiate the Set as IoTSet that uses - * Java Set to implement; we don't provide interfaces to modify - * the contents, but we do provide means to read them out - * - * @author Rahmadi Trimananda - * @version 1.0 - * @since 2015-12-01 - */ -public final class IoTSet { - - /** - * Reference to an object Set - */ - private Set set; - - /** - * Class constructor (pass the reference to this immutable wrapper) - */ - public IoTSet(Set s) { - - set = s; - } - - /** - * contains() method inherited from Set interface - */ - public boolean contains(T o) { - - return set.contains(o); - - } - - /** - * isEmpty() method inherited from Set interface - */ - public boolean isEmpty() { - - return set.isEmpty(); - - } - - /** - * iterator() method inherited from Set interface - */ - public Iterator iterator() { - - return new HashSet(set).iterator(); - - } - - /** - * size() method inherited from Set interface - */ - public int size() { - - return set.size(); - - } - - /** - * values() method to return Set object values for easy iteration - */ - public Set values() { - - return new HashSet(set); - - } -}