Back to project page MorseCode.
The source code is released under:
Custom License You are free to download and edit the source code for personal use but not for commercial app purposes. We are going to use this code to create an app in the future.
If you think the Android project MorseCode listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.csc.morsecode.data; /*ww w . j a v a 2 s. c o m*/ /** * @author dpk3062 * Used to wrap Code[] so we can nicely print them out */ public class Encoding { public final Code[] get; public Encoding(Code[] encoding) { this.get = encoding; } public boolean equals(Encoding e) { if(e == null) { return false; } return this.toString().equals(e.toString()); } @Override public int hashCode() { return this.toString().hashCode(); } @Override public String toString() { StringBuffer sb = new StringBuffer(get.length); sb.append("[Encoding:"); for(Code c: get) { sb.append(c.text); } sb.append("]"); return sb.toString(); } }