Class Capacity

    • Method Detail

      • available

        public final Long available()

        The amount of capacity available for use on the device.

        Returns:
        The amount of capacity available for use on the device.
      • name

        public final String name()

        The name of the type of capacity, such as memory.

        Returns:
        The name of the type of capacity, such as memory.
      • total

        public final Long total()

        The total capacity on the device.

        Returns:
        The total capacity on the device.
      • unit

        public final String unit()

        The unit of measure for the type of capacity.

        Returns:
        The unit of measure for the type of capacity.
      • used

        public final Long used()

        The amount of capacity used on the device.

        Returns:
        The amount of capacity used on the device.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)