code: public static <T> Iterator<T> singleIterator(T t) {
          Require.nonNull(t, "t");
          return Collections.singleton(t).iterator();
      }
docs: Creates an Iterator over the single given element.
  
  @param t The element.
  @return Iterator returning the single element.