add isEmpty() method

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-12-30 01:25:20 +00:00
parent 9021c449f0
commit 6d93ac6172

View File

@ -281,10 +281,18 @@ public final class PackageRelationshipCollection implements Iterable<PackageRela
}
/**
* Get the numbe rof relationships in the collection.
* Get the number of relationships in the collection.
*/
public int size() {
return relationshipsByID.values().size();
return relationshipsByID.size();
}
/**
* Is this collection empty?
* @since POI 5.2.0
*/
public boolean isEmpty() {
return relationshipsByID.isEmpty();
}
/**