Record Class Weight
java.lang.Object
java.lang.Record
com.ibm.wala.analysis.arraybounds.hypergraph.weight.Weight
A weight may be not set, a number or unlimited, note that the meaning of unlimited is given by
the chosen order (see
NormalOrder and ReverseOrder).- Author:
- Stephan Gocht
<stephan@gobro.de>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWeight(int number) Weight(Weight.Type type, int number) Creates an instance of aWeightrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns this + other.final booleanIndicates whether some other object is "equal to" this one.intDeprecated, for removal: This API element is subject to removal in a future version.getType()Deprecated, for removal: This API element is subject to removal in a future version.Usetype()insteadfinal inthashCode()Returns a hash code value for this object.intnumber()Returns the value of thenumberrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
UNLIMITED
-
NOT_SET
-
ZERO
-
-
Constructor Details
-
Weight
public Weight(int number) -
Weight
Creates an instance of aWeightrecord class.- Parameters:
type- the value for thetyperecord componentnumber- the value for thenumberrecord component
-
-
Method Details
-
add
-
getNumber
Deprecated, for removal: This API element is subject to removal in a future version.Usenumber()instead -
getType
Deprecated, for removal: This API element is subject to removal in a future version.Usetype()instead -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
number()instead