XPRSenumerations.Clamping
- java.lang.Object
-
- java.lang.Number
-
- com.dashoptimization.XPRSenumerations.BitVector
-
- com.dashoptimization.XPRSenumerations.Clamping
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable<XPRSenumerations.Clamping>
- Enclosing interface:
- XPRSenumerations
public static final class XPRSenumerations.Clamping extends XPRSenumerations.BitVector implements java.lang.Comparable<XPRSenumerations.Clamping>
A bitvector of 'CLAMPING'. All instances of this enumeration will be drawn from combinations of the constant objects defined in this class. Instances of this class should be compared usingequals()rather than the equality operator.- See Also:
- Serialized Form
-
-
Field Summary
Modifier and Type Field Description static XPRSenumerations.ClampingDUALstatic XPRSenumerations.ClampingPRIMALstatic XPRSenumerations.ClampingRDJstatic XPRSenumerations.ClampingSLACKS
-
Constructor Summary
Constructor Description Clamping(int val)
-
Method Summary
Modifier and Type Method Description XPRSenumerations.Clampingadd(XPRSenumerations.Clamping... flags)Create a new instance that has all bits from this bit vector and those inflags.XPRSenumerations.Clampingclear(XPRSenumerations.Clamping... flags)Create a new instance that has all bits from this bit vector without those inflags.intcompareTo(XPRSenumerations.Clamping other)booleanequals(XPRSenumerations.Clamping other)static XPRSenumerations.ClampingfromValue(int val)Get bit vector from numeric value,booleanhasFlag(int flags)Check whether this bitvector has the specified bits set.booleanhasFlag(XPRSenumerations.Clamping... flags)Check whether this bitvector has the specified bits set.java.lang.StringtoString()static java.lang.StringtoString(int val)Get a string representation of the specified value.static XPRSenumerations.ClampingvalueOf(int bits)Create a new instance with the specified value.static XPRSenumerations.ClampingvalueOf(XPRSenumerations.Clamping... bits)Create a new instance with the specified value.-
Methods inherited from class com.dashoptimization.XPRSenumerations.BitVector
byteValue, doubleValue, equals, floatValue, getValue, hashCode, intValue, longValue, shortValue
-
-
-
-
Field Detail
-
PRIMAL
public static final XPRSenumerations.Clamping PRIMAL
-
DUAL
public static final XPRSenumerations.Clamping DUAL
-
SLACKS
public static final XPRSenumerations.Clamping SLACKS
-
RDJ
public static final XPRSenumerations.Clamping RDJ
-
-
Method Detail
-
fromValue
public static XPRSenumerations.Clamping fromValue(int val)
Get bit vector from numeric value,- Parameters:
-
val- The value to map. - Returns:
- The enumeration entry for <code>val</code>.
-
compareTo
public int compareTo(XPRSenumerations.Clamping other)
- Specified by:
-
compareToin interfacejava.lang.Comparable<XPRSenumerations.Clamping>
-
equals
public boolean equals(XPRSenumerations.Clamping other)
-
toString
public java.lang.String toString()
- Overrides:
-
toStringin classjava.lang.Object
-
toString
public static java.lang.String toString(int val)
Get a string representation of the specified value.- Parameters:
-
val- The value for which to get a string representation - Returns:
-
A string representation for
val.
-
hasFlag
public boolean hasFlag(int flags)
Check whether this bitvector has the specified bits set.- Parameters:
-
flags- The flags to test. - Returns:
-
trueif all bits inflagsare also set in this bit vector.
-
hasFlag
public boolean hasFlag(XPRSenumerations.Clamping... flags)
Check whether this bitvector has the specified bits set. Note that an empty list or a value of 0 will always match.- Parameters:
-
flags- The flags to test. - Returns:
-
trueif all bits inflagsare also set in this bit vector.
-
add
public XPRSenumerations.Clamping add(XPRSenumerations.Clamping... flags)
Create a new instance that has all bits from this bit vector and those inflags.- Parameters:
-
flags- The additional flags to set. - Returns:
-
A new instance that has all bits in
thisandflagsset.
-
clear
public XPRSenumerations.Clamping clear(XPRSenumerations.Clamping... flags)
Create a new instance that has all bits from this bit vector without those inflags.- Parameters:
-
flags- The flags to remove. - Returns:
-
A new instance that has all bits in
thiswithoutflagsset.
-
valueOf
public static XPRSenumerations.Clamping valueOf(int bits)
Create a new instance with the specified value.- Parameters:
-
bits- The bits to be set in the new instance.
-
valueOf
public static XPRSenumerations.Clamping valueOf(XPRSenumerations.Clamping... bits)
Create a new instance with the specified value.- Parameters:
-
bits- The bits to be set in the new instance.
-
-
© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
