public FSTField[] getOwnFields() { FSTField[] fieldArray = new FSTField[getOwnFieldCount()]; int i = 0; for (FSTField field : fields.values()) if (field.isOwn(currentFile)) fieldArray[i++] = field; return fieldArray; }
public int getOwnFieldCount() { int i = 0; for (FSTField field : fields.values()) if (field.isOwn(currentFile)) i++; return i; }