@Override
        public boolean hasNext() {
            if (nextGram != null) return true;
            nextGram = findNext();
            return nextGram != null;
        }
The next gram or null if not determined yet
linguistics/src/main/java/com/yahoo/language/process/GramSplitter.java