Class ConstraintValueArg
- java.lang.Object
-
- com.facebook.buck.core.rules.platform.ConstraintValueArg
-
- All Implemented Interfaces:
ConstructorArg
,DataTransferObject
,ConfigurationRuleArg
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ConstraintValueArg extends Object
Immutable implementation ofConstraintValueDescription.AbstractConstraintValueArg
.Use the builder to create immutable instances:
ConstraintValueArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConstraintValueArg.Builder
Builds instances of typeConstraintValueArg
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConstraintValueArg.Builder
builder()
Creates a builder forConstraintValueArg
.boolean
equals(Object another)
This instance is equal to all instances ofConstraintValueArg
that have equal attribute values.UnconfiguredBuildTarget
getConstraintSetting()
String
getName()
Each rule has a nameint
hashCode()
Computes a hash code from attributes:constraintSetting
,name
.String
toString()
Prints the immutable valueConstraintValueArg
with attribute values.
-
-
-
Method Detail
-
getConstraintSetting
public UnconfiguredBuildTarget getConstraintSetting()
- Returns:
- The value of the
constraintSetting
attribute
-
getName
public String getName()
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofConstraintValueArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:constraintSetting
,name
.
-
toString
public String toString()
Prints the immutable valueConstraintValueArg
with attribute values.
-
builder
public static ConstraintValueArg.Builder builder()
Creates a builder forConstraintValueArg
.- Returns:
- A new ConstraintValueArg builder
-
-