ezvcard.io.scribe
Class VCardPropertyScribe.StructuredIterator

java.lang.Object
  extended by ezvcard.io.scribe.VCardPropertyScribe.StructuredIterator
Enclosing class:
VCardPropertyScribe<T extends VCardProperty>

protected static class VCardPropertyScribe.StructuredIterator
extends Object

Iterates over the fields in a structured value.


Constructor Summary
VCardPropertyScribe.StructuredIterator(Iterator<List<String>> it)
          Constructs a new structured iterator.
 
Method Summary
 boolean hasNext()
           
 List<String> nextComponent()
          Gets the next component.
 String nextString()
          Gets the first value of the next component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardPropertyScribe.StructuredIterator

public VCardPropertyScribe.StructuredIterator(Iterator<List<String>> it)
Constructs a new structured iterator.

Parameters:
it - the iterator to wrap
Method Detail

nextString

public String nextString()
Gets the first value of the next component.

Returns:
the first value, null if the value is an empty string, or null if there are no more components

nextComponent

public List<String> nextComponent()
Gets the next component.

Returns:
the next component, an empty list if the component is empty, or an empty list of there are no more components

hasNext

public boolean hasNext()


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.