You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/BioJava:Cookbook:Alphabets:Cononical.mediawiki
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
== How can I tell if two Symbols or Alphabets are equal? ==
2
2
3
-
In Biojava the same [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabets] and the same [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols] are canonical no matter how they were constructed or where they came from. This means that if two [[wp:DNA|DNA]] alphabets (or [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols] from those alphabets) are instantiated at different times are equal via both the .equals() and == functions. Also Symbols from the PROTEIN and the PROTEIN-TERM alphabets are canonical as are Symbols from the [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/IntegerAlphabet.html IntegerAlphabet] and the [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/IntegerAlphabet.SubIntegerAlphabet.html SubIntegerAlphabet].
3
+
In Biojava the same [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabets] and the same [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbols] are canonical no matter how they were constructed or where they came from. This means that if two [[wp:DNA|DNA]] alphabets (or [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbols] from those alphabets) are instantiated at different times are equal via both the .equals() and == functions. Also Symbols from the PROTEIN and the PROTEIN-TERM alphabets are canonical as are Symbols from the [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/IntegerAlphabet.html IntegerAlphabet] and the [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/IntegerAlphabet.SubIntegerAlphabet.html SubIntegerAlphabet].
4
4
5
-
This is even true of [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabets] and [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols] on different virtual machines (thanks to some [http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html Serialization] magic) which means BioJava works across RMI.
5
+
This is even true of [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabets] and [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbols] on different virtual machines (thanks to some [http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html Serialization] magic) which means BioJava works across RMI.
0 commit comments