code: public Set<E> asSet ()
      {
          return new AbstractSet<E>() {
              @Override public boolean add (E o) {
                  throw new UnsupportedOperationException();
              }
              @Override public boolean remove (Object o) {
                  throw new UnsupportedOperationException();
              }
              @Override public boolean contains (Object o) {
                  if (!(o instanceof DSet.Entry)) {
                      return false;
                  }
                  @SuppressWarnings("unchecked") E elem = (E)o;
                  return DSet.this.contains(elem);
              }
              @Override public Iterator<E> iterator () {
                  return DSet.this.iterator();
              }
              @Override public int size () {
                  return DSet.this.size();
              }
          };
      }
docs: Creates an <b>immutable</b> view of this distributed set as a Java set.