Package pal.datatype

Class MolecularDataType.Utils

  • Enclosing interface:
    MolecularDataType

    public static final class MolecularDataType.Utils
    extends java.lang.Object
    Utilities relating to MolecularDataType stuff
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • getMolecularDataType

        public static final MolecularDataType getMolecularDataType​(DataType dt)
        Converts (if possible) a DataType into a MolecularDataType. This is done by either casting (if input is already a MolecularDataType) or, if the DataType represents AminoAcids returning a SpecificAminoAcids object based on the Universal Codon Table
        Parameters:
        dt - the base DataType
        Returns:
        null if not possible to derive a MolecularDataType