|
||||||||||
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.
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 | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getChargeAsFormattedString()
Returns the charge as a string of + or -. |
int |
hashCode()
|
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, finalize, getClass, 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()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |