@Test public void testParsableStringConversion() { PatternFilter filter1 = new PatternFilter(new Siteswap("ppsps"), PatternFilter.Type.EXCLUDE); PatternFilter filter2 = new PatternFilter(new Siteswap("972"), PatternFilter.Type.INCLUDE); String filter1str = filter1.toParsableString(); String filter2str = filter2.toParsableString(); PatternFilter filter1conv = new PatternFilter(filter1str); PatternFilter filter2conv = new PatternFilter(filter2str); assertEquals(filter1, filter1conv); assertEquals(filter2, filter2conv); }
@Override public String toParsableString() { String str = new String(); str += String.valueOf(VERSION) + ","; str += mPattern.toParsableString() + ","; str += mType.toString() + ","; return str; }
PatternFilter extends Filter { @Override public String toParsableString() { String str = new String(); str += String.valueOf(VERSION) + ","; str += mPattern.toParsableString() + ","; str += mType.toString() + ","; return str; } }
PatternFilter extends Filter { @Override public String toParsableString() { String str = new String(); str += String.valueOf(VERSION) + ","; str += mPattern.toParsableString() + ","; str += mType.toString() + ","; return str; } PatternFilter();  PatternFilter(String str);  PatternFilter(Siteswap pattern, Type type); }
PatternFilter extends Filter { @Override public String toParsableString() { String str = new String(); str += String.valueOf(VERSION) + ","; str += mPattern.toParsableString() + ","; str += mType.toString() + ","; return str; } PatternFilter();  PatternFilter(String str);  PatternFilter(Siteswap pattern, Type type); @Override boolean isFulfilled(Siteswap siteswap); @Override boolean isPartlyFulfilled(Siteswap siteswap, int index); @Override String toParsableString(); @Override PatternFilter fromParsableString(String str); @Override String toString(); @Override boolean equals(Object obj); Type getType(); Siteswap getPattern(); }
PatternFilter extends Filter { @Override public String toParsableString() { String str = new String(); str += String.valueOf(VERSION) + ","; str += mPattern.toParsableString() + ","; str += mType.toString() + ","; return str; } PatternFilter();  PatternFilter(String str);  PatternFilter(Siteswap pattern, Type type); @Override boolean isFulfilled(Siteswap siteswap); @Override boolean isPartlyFulfilled(Siteswap siteswap, int index); @Override String toParsableString(); @Override PatternFilter fromParsableString(String str); @Override String toString(); @Override boolean equals(Object obj); Type getType(); Siteswap getPattern();  }