Skip to content

Nomeyho/molecular-formula-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molecular formula parser

Simple molecular formula parser for Java 8

Install

<dependency>
  <groupId>io.github.nomeyho</groupId>
  <artifactId>molecular-formula-parser</artifactId>
  <version>1.0.3</version>
</dependency>

Usage

FormulaParser parser = new FormulaParser("H20");
Map<Element, Integer> atoms = parser.parse();

atoms.get(Element.H); // 2
atoms.get(Element.0); // 1

Releases

No releases published

Packages

No packages published

Languages