PDFCollectionNameIterator.java
1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.types.ASName
*/
package com.adobe.internal.pdftoolkit.pdf.interactive.navigation.collection;
import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.document.PDFCosDictionaryMap;
import java.util.Iterator;
import java.util.Set;
public class PDFCollectionNameIterator {
private final Iterator mKeyIterator;
private final int mSize;
PDFCollectionNameIterator(PDFCosDictionaryMap map) {
this.mKeyIterator = map == null ? null : map.keySet().iterator();
this.mSize = map == null ? 0 : map.size();
}
public void remove() {
this.mKeyIterator.remove();
}
public boolean hasNext() {
return this.mKeyIterator != null && this.mKeyIterator.hasNext();
}
public ASName nextKey() {
return (ASName)this.mKeyIterator.next();
}
public int size() {
return this.mSize;
}
}