|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.massspectrometry.Charge
public class Charge
This class models a charge. Created by IntelliJ IDEA. User: Marc Date: Jun 23, 2010 Time: 10:01:29 AM
Field Summary | |
---|---|
static int |
MINUS
static int to modele a negative charge |
static int |
NEUTRAL
static int to modele a neutral component |
static int |
PLUS
static int to modele a positive charge |
int |
sign
sign of the charge according to the static fields |
int |
value
value of the charge |
Constructor Summary | |
---|---|
Charge(int sign,
int value)
constructor for a charge |
Method Summary | |
---|---|
java.lang.String |
getChargeAsFormattedString()
Returns the charge as a string of +. |
java.lang.String |
toString()
returns a string representing the charge |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PLUS
public static final int MINUS
public static final int NEUTRAL
public int sign
public int value
Constructor Detail |
---|
public Charge(int sign, int value)
sign
- sign of the charge as specified in static fieldsvalue
- value of the chargeMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getChargeAsFormattedString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |