package io.intercom.api; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Iterator; import java.util.List; @SuppressWarnings("UnusedDeclaration") @JsonIgnoreProperties(ignoreUnknown = true) public class NoteCollection extends TypedDataCollection implements Iterator { protected TypedDataCollectionIterator iterator; public NoteCollection() { iterator = new TypedDataCollectionIterator(this); } @Override public NoteCollection nextPage() { return fetchNextPage(NoteCollection.class); } @SuppressWarnings("EmptyMethod") @JsonProperty("notes") @Override public List getPage() { return super.getPage(); } public boolean hasNext() { return iterator.hasNext(); } public Note next() { return iterator.next(); } public void remove() { iterator.remove(); } }