public class DefaultPeptideIon extends Object implements PeptideIon
Constructor and Description |
---|
DefaultPeptideIon(Peptide peptide,
int charge)
Create a peptide ion.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCharge() |
double |
getMass() |
double |
getMassOverCharge() |
Peptide |
getPeptide() |
int |
hashCode() |
String |
toString() |
public DefaultPeptideIon(Peptide peptide, int charge)
peptide
- can not set null, otherwise throw NullPointerException.charge
- public double getMassOverCharge()
getMassOverCharge
in interface PeptideIon
public int getCharge()
getCharge
in interface PeptideIon
public double getMass()
getMass
in interface PeptideIon
public Peptide getPeptide()
getPeptide
in interface PeptideIon
Peptide
of ion.Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.