+ private static final void check( final String identifier, final String mol_sequence ) {
+ if ( ForesterUtil.isEmpty( identifier ) ) {
+ throw new IllegalArgumentException( "identifier of sequence cannot be empty" );
+ }
+ if ( ForesterUtil.isEmpty( mol_sequence ) ) {
+ throw new IllegalArgumentException( "molecular sequence cannot be empty" );
+ }
+ }
+
+ /**
+ * Only use if you know what you are doing!
+ *
+ */