Java 类com.google.common.collect.ForwardingSet 实例源码

项目:guava-mock    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:googles-monorepo-demo    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:codebuff    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:codebuff    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:codebuff    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:codebuff    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:codebuff    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:bts    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override protected Set<Entry<K, V>> delegate() {
      return entries;
    }
    @Override public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }
    @Override public Object[] toArray() {
      return standardToArray();
    }
    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:guava-libraries    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override protected Set<Entry<K, V>> delegate() {
      return entries;
    }
    @Override public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }
    @Override public Object[] toArray() {
      return standardToArray();
    }
    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:guava    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:guava    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override
    protected Set<Entry<K, V>> delegate() {
      return entries;
    }

    @Override
    public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }

    @Override
    public Object[] toArray() {
      return standardToArray();
    }

    @Override
    public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:cnGuava    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override protected Set<Entry<K, V>> delegate() {
      return entries;
    }
    @Override public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }
    @Override public Object[] toArray() {
      return standardToArray();
    }
    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:org.openntf.domino    文件:MutableTypeToInstanceMap.java   
static <K, V> Set<Entry<K, V>> transformEntries(final Set<Entry<K, V>> entries) {
  return new ForwardingSet<Map.Entry<K, V>>() {
    @Override protected Set<Entry<K, V>> delegate() {
      return entries;
    }
    @Override public Iterator<Entry<K, V>> iterator() {
      return UnmodifiableEntry.transformEntries(super.iterator());
    }
    @Override public Object[] toArray() {
      return standardToArray();
    }
    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
  };
}
项目:calcite    文件:CompatibleGuava11.java   
private static <E> Set<E> removeOnlySet(final Set<E> set) {
  return new ForwardingSet<E>() {
    @Override protected Set<E> delegate() {
      return set;
    }

    @Override public boolean add(E element) {
      throw new UnsupportedOperationException();
    }

    @Override public boolean addAll(Collection<? extends E> es) {
      throw new UnsupportedOperationException();
    }
  };
}
项目:papaya    文件:ThreadLocals.java   
public static <T> Set<T> newThreadLocalSet() {
  return new ForwardingSet<T>() {
    private final ThreadLocal<Set<T>> threadSet = new ThreadLocal<Set<T>>() {
      @Override
      protected Set<T> initialValue() {
        return Sets.newHashSet();
      }
    };

    @Override
    protected Set<T> delegate() {
      return threadSet.get();
    }
  };
}