package com.bbn.kbp.events2014;

import com.bbn.bue.common.symbols.Symbol;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableSet;

import static com.google.common.base.Preconditions.checkNotNull;

public final class TypeRoleFillerRealisSet {
    private final ImmutableSet<TypeRoleFillerRealis> coreffedArgs;

    private TypeRoleFillerRealisSet(Iterable<TypeRoleFillerRealis> coreffedArgs) {
        this.coreffedArgs = ImmutableSet.copyOf(coreffedArgs);
    }

    public static TypeRoleFillerRealisSet create(Iterable<TypeRoleFillerRealis> coreffedArgs)
    {
        return new TypeRoleFillerRealisSet(coreffedArgs);
    }

    public ImmutableSet<TypeRoleFillerRealis> asSet() {
        return coreffedArgs;
    }

    public static TypeRoleFillerRealisSet from(Iterable<TypeRoleFillerRealis> items) {
        return new TypeRoleFillerRealisSet(items);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(coreffedArgs);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final TypeRoleFillerRealisSet other = (TypeRoleFillerRealisSet) obj;
        return Objects.equal(this.coreffedArgs, other.coreffedArgs);
    }
}

@@ -30,50 +30,8 @@
 4;%0A%0A
-import com.bbn.bue.common.symbols.Symbol;%0A
 impo
@@ -124,64 +124,26 @@
 ort 
-static com.google.common.base.Preconditions.checkNotNull
+java.util.Iterator
 ;%0A%0Ap
@@ -183,16 +183,58 @@
 ealisSet
+ implements Iterable%3CTypeRoleFillerRealis%3E
  %7B%0A    p
@@ -1309,11 +1309,127 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public Iterator%3CTypeRoleFillerRealis%3E iterator() %7B%0A        return coreffedArgs.iterator();%0A    %7D
 %0A%7D%0A

Make TypeRoleFillerRealisSet Iterable