Mercurial > repos > pfrommolt > ngsrich
view NGSrich_0.5.5/src/datastructures/Format.java @ 0:89ad0a9cca52 default tip
Uploaded
author | pfrommolt |
---|---|
date | Mon, 21 Nov 2011 08:12:19 -0500 |
parents | |
children |
line wrap: on
line source
package datastructures; public enum Format{ type("type"), sam("sam"), maq("maq"), megablast("megablast"), eland("eland"), roche("roche"), genome("genome"), target("target"), invalid("invalid"); private String f; Format(String format){ this.f = format; } public Format compile(String f){ this.f = f; try{ return Format.valueOf(this.f); }catch(IllegalArgumentException iae){ return invalid; } } public boolean equals(Format other){ return this.f.equals(other.f); } };