mirror of
https://github.com/apache/poi.git
synced 2025-02-23 19:05:17 +00:00
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:
parent
9021c449f0
commit
6d93ac6172
@ -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() {
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user