(Object object)
| 108 | } |
| 109 | |
| 110 | @SuppressWarnings("unchecked") |
| 111 | private T tryToCast(Object object) throws ClassCastException { |
| 112 | //We want the class cast exception if we can't convert. |
| 113 | return (T) object; |
| 114 | } |
| 115 | |
| 116 | private class EnumSetIterator implements Iterator<T> { |
| 117 | private int currentIndex = 0; |