Class VolumeImpl

  • All Implemented Interfaces:
    Volume

    public class VolumeImpl
    extends Object
    implements Volume
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()
      • getId

        public String getId()
        Unique identifier. If set, can be used to reference the volume for reorganizing within Hardware or external commands such as backups.
        Specified by:
        getId in interface Volume
      • getType

        public Volume.Type getType()
        Describes the cardinal type of a volume; used to determine scope and exclusivity.
        Specified by:
        getType in interface Volume
      • getSize

        public Float getSize()
        Specified by:
        getSize in interface Volume
        Returns:
        capacity in gigabytes, if available
      • getDevice

        public String getDevice()
        Specified by:
        getDevice in interface Volume
        Returns:
        device this volume relates to on an operating system, if available
      • isDurable

        public boolean isDurable()
        Specified by:
        isDurable in interface Volume
        Returns:
        true if this survives restarts
      • isBootDevice

        public boolean isBootDevice()
        Specified by:
        isBootDevice in interface Volume
        Returns:
        true if this is the boot device