Here you can find the source of singletonIterator(final T t)
public static <T> Iterator<T> singletonIterator(final T t)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static <T> Iterator<T> singletonIterator(final T t) { return Collections.singletonList(t).iterator(); }//from w w w .j av a 2 s . c o m }