Class TestBucket


  • public class TestBucket
    extends java.lang.Object
    Models a single bucket in a test, generally meant to have one bucket per varying behavior
    • Constructor Detail

      • TestBucket

        public TestBucket​(@Nonnull
                          java.lang.String name,
                          int value,
                          @Nullable
                          java.lang.String description)
      • TestBucket

        public TestBucket​(@Nonnull
                          java.lang.String name,
                          int value,
                          @Nullable
                          java.lang.String description,
                          @Nullable
                          Payload payload)
      • TestBucket

        public TestBucket​(@Nonnull
                          TestBucket other)
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
      • setName

        @Deprecated
        public void setName​(@Nonnull
                            java.lang.String name)
        Deprecated.
        Use builder() and TestBucket.Builder.name instead. Using setter of bucket is a possible cause of a major bug that invalidate A/B testing result because two ProctorResult share same object. This will be removed in a future release.
      • getValue

        public int getValue()
      • setValue

        @Deprecated
        public void setValue​(int value)
        Deprecated.
        Use builder() and TestBucket.Builder.value instead. Using setter of bucket is a possible cause of a major bug that invalidate A/B testing result because two ProctorResult share same object. This will be removed in a future release.
      • getDescription

        @Nullable
        public java.lang.String getDescription()
      • setDescription

        @Deprecated
        public void setDescription​(@Nullable
                                   java.lang.String description)
        Deprecated.
        Use builder() and TestBucket.Builder.description instead. Using setter of bucket is a possible cause of a major bug that invalidate A/B testing result because two ProctorResult share same object. This will be removed in a future release.
      • getPayload

        @Nullable
        public Payload getPayload()
      • setPayload

        @Deprecated
        public void setPayload​(@Nullable
                               Payload payload)
        Deprecated.
        Use builder() and TestBucket.Builder.payload instead. Using setter of bucket is a possible cause of a major bug that invalidate A/B testing result because two ProctorResult share same object. This will be removed in a future release.
      • toString

        @Nullable
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • fullHashCode

        public int fullHashCode()