Skip to content

Commit 498fe51

Browse files
committed
adding new size method to CCD, as an easy count for the nr. of ChemComps.
1 parent 219d39b commit 498fe51

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/mmcif/ChemicalComponentDictionary.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ public void addChemComp(ChemComp comp){
127127
}
128128
}
129129

130+
/** Returns the number of ChemComps in this dictionary
131+
*
132+
* @return nr. of ChemComps
133+
*/
134+
public int size(){
135+
136+
return dictionary.size();
137+
138+
}
139+
130140
public ChemComp getChemComp(String id){
131141
return dictionary.get(id);
132142
}

0 commit comments

Comments
 (0)