class IteratorUtils {

	public static Iterator<Character> toIterator(final String value) {
		return new Iterator<Character>() {
			int index = 0;

			@Override
			public boolean hasNext() {
				return index < value.length();
			}

			@Override
			public Character next() {
				return value.charAt(index++);
			}

			@Override
			public void remove() {
			}
		};
	}

}