@Override
    public Iterator<T> iterator() {
      return new Iterator<T>() {
        private final Iterator<T> iterator = iterable.iterator();

        @Override
        public boolean hasNext() {
          return iterator.hasNext();
        }

        @Override
        public T next() {
          return iterator.next();
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();
        }
      };
    }
Unmodifiable {@link Iterable} in the style of
{@link Collections#unmodifiableCollection(Collection)}.


@since GemFire 8.1
geode-core/src/main/java/org/apache/geode/internal/util/CollectionUtils.java