Class ClusterValue<T>

    • Method Detail

      • getMultiValue

        public java.util.Map<java.lang.String,​T> getMultiValue()
        Get per-node value.
        Asserts if hasMultiData() is false.
      • getSingleValue

        public T getSingleValue()
        Get the single value.
        Asserts if hasSingleData() is false.
      • of

        public static <T> ClusterValue<T> of​(java.lang.Object data)
        A constructor for the value with type auto-detection.
      • ofSingleValue

        public static <T> ClusterValue<T> ofSingleValue​(T data)
        A constructor for the value.
      • ofMultiValue

        public static <T> ClusterValue<T> ofMultiValue​(java.util.Map<java.lang.String,​T> data)
        A constructor for the value.
      • ofMultiValueBinary

        public static <T> ClusterValue<T> ofMultiValueBinary​(java.util.Map<GlideString,​T> data)
        A constructor for the value.
      • hasMultiData

        public boolean hasMultiData()
        Check that multi-value is stored in this object. Should be called prior to getMultiValue().
      • hasSingleData

        public boolean hasSingleData()
        Check that single-value is stored in this object. Should be called prior to getSingleValue().