Package net.hollowcube.posthog
Record Class FeatureFlagContext
java.lang.Object
java.lang.Record
net.hollowcube.posthog.FeatureFlagContext
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanReturns the value of theallowRemoteEvaluationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupPropertiesrecord component.@Nullable Objectgroups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.static @NotNull FeatureFlagContext.Builder@Nullable ObjectReturns the value of thepersonPropertiesrecord component.@Nullable BooleanReturns the value of thesendFeatureFlagEventsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
FeatureFlagContext
public FeatureFlagContext(@Nullable @Nullable Object groups, @Nullable @Nullable Object personProperties, @Nullable @Nullable Map<String, Object> groupProperties, @Nullable @Nullable Boolean sendFeatureFlagEvents, @Nullable @Nullable Boolean allowRemoteEvaluation) Creates an instance of aFeatureFlagContextrecord class.- Parameters:
groups- the value for thegroupsrecord componentpersonProperties- the value for thepersonPropertiesrecord componentgroupProperties- the value for thegroupPropertiesrecord componentsendFeatureFlagEvents- the value for thesendFeatureFlagEventsrecord componentallowRemoteEvaluation- the value for theallowRemoteEvaluationrecord component
-
-
Method Details
-
newBuilder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
groups
Returns the value of thegroupsrecord component.- Returns:
- the value of the
groupsrecord component
-
personProperties
Returns the value of thepersonPropertiesrecord component.- Returns:
- the value of the
personPropertiesrecord component
-
groupProperties
Returns the value of thegroupPropertiesrecord component.- Returns:
- the value of the
groupPropertiesrecord component
-
sendFeatureFlagEvents
Returns the value of thesendFeatureFlagEventsrecord component.- Returns:
- the value of the
sendFeatureFlagEventsrecord component
-
allowRemoteEvaluation
Returns the value of theallowRemoteEvaluationrecord component.- Returns:
- the value of the
allowRemoteEvaluationrecord component
-