Class ValueDescriptors

    • Method Detail

      • isValueConfigurable

        public static boolean isValueConfigurable​(IValueDescriptor<?,​?> descriptor)
        Checks if the given value descriptor allows configuration to its allowed value, i.e. whether builder().build() can return different values. This is the case for all value descriptors except void, null and constant value descriptors.
        Parameters:
        descriptor - The value descriptor to check.
        Returns:
        True if the value descriptor is configurable, false otherwise.
      • isValueUnconfigurable

        public static boolean isValueUnconfigurable​(IValueDescriptor<?,​?> descriptor)
        Checks if the given value descriptor does not allow any configuration to its allowed value, i.e. whether builder().build() will always return the same value. This is the case for void, null and constant value descriptors.
        Parameters:
        descriptor - The value descriptor to check.
        Returns:
        True if the value descriptor is unconfigurable, false otherwise.