Class BasicDomain

java.lang.Object
org.forester.protein.BasicDomain
All Implemented Interfaces:
Comparable<Domain>, Domain

public class BasicDomain extends Object implements Domain
  • Constructor Details

    • BasicDomain

      public BasicDomain(String id)
    • BasicDomain

      public BasicDomain(String id, int from, int to, short number, short total_count, double per_domain_evalue, double per_domain_score)
  • Method Details

    • compareTo

      public int compareTo(Domain domain)
      Basic domains are compared/sorted based upon their identifiers (case insensitive) and their numbers.
      Specified by:
      compareTo in interface Comparable<Domain>
    • equals

      public boolean equals(Object o)
      Basic domains are considered equal if they have the same identifier (case sensitive).
      Overrides:
      equals in class Object
    • getDomainId

      public String getDomainId()
      Specified by:
      getDomainId in interface Domain
    • getFrom

      public int getFrom()
      Specified by:
      getFrom in interface Domain
    • getLength

      public int getLength()
      Specified by:
      getLength in interface Domain
    • getNumber

      public short getNumber()
      Specified by:
      getNumber in interface Domain
    • getPerDomainEvalue

      public double getPerDomainEvalue()
      Specified by:
      getPerDomainEvalue in interface Domain
    • getPerDomainScore

      public double getPerDomainScore()
      Specified by:
      getPerDomainScore in interface Domain
    • getTo

      public int getTo()
      Specified by:
      getTo in interface Domain
    • getTotalCount

      public short getTotalCount()
      Specified by:
      getTotalCount in interface Domain
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringBuffer

      public StringBuffer toStringBuffer()
    • obtainIdAsShort

      public static final short obtainIdAsShort(String id)
    • obtainIdFromShort

      public static final String obtainIdFromShort(short id)