biweekly.property.marshaller
Class ICalPropertyMarshaller.StructuredIterator

java.lang.Object
  extended by biweekly.property.marshaller.ICalPropertyMarshaller.StructuredIterator
Enclosing class:
ICalPropertyMarshaller<T extends ICalProperty>

protected static class ICalPropertyMarshaller.StructuredIterator
extends Object

Iterates over the fields in a structured value.


Constructor Summary
ICalPropertyMarshaller.StructuredIterator(Iterator<List<String>> it)
          Constructs a new structured iterator.
 
Method Summary
 boolean hasNext()
          Determines if there are any elements left in the value.
 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

ICalPropertyMarshaller.StructuredIterator

public ICalPropertyMarshaller.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()
Determines if there are any elements left in the value.

Returns:
true if there are elements left, false if not


Copyright © 2013 Michael Angstadt. All Rights Reserved.