content: package com.alex.hardware.sdcard;
  
  import android.os.Parcel;
  import android.os.Parcelable;
  
  public class StorageBean implements Parcelable {
      private String path; // 路径
      private String mounted; // 是否挂载
      private boolean removable; // 是否可移除
      private long totalSize; // 整个大小
      private long availableSize; // 可用大小
  
      public String getPath() {
          return path;
      }
  
      public void setPath(String path) {
          this.path = path;
      }
  
      public String getMounted() {
          return mounted;
      }
  
      public void setMounted(String mounted) {
          this.mounted = mounted;
      }
  
      public boolean getRemovable() {
          return removable;
      }
  
      public void setRemovable(boolean removable) {
          this.removable = removable;
      }
  
      public long getTotalSize() {
          return totalSize;
      }
  
      public void setTotalSize(long totalSize) {
          this.totalSize = totalSize;
      }
  
      public long getAvailableSize() {
          return availableSize;
      }
  
      public void setAvailableSize(long availableSize) {
          this.availableSize = availableSize;
      }
  
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeString(this.path);
          dest.writeString(this.mounted);
          dest.writeByte(removable ? (byte) 1 : (byte) 0);
          dest.writeLong(this.totalSize);
          dest.writeLong(this.availableSize);
      }
  
      public StorageBean() {
      }
  
      protected StorageBean(Parcel in) {
          this.path = in.readString();
          this.mounted = in.readString();
          this.removable = in.readByte() != 0;
          this.totalSize = in.readLong();
          this.availableSize = in.readLong();
      }
  
      public static final Parcelable.Creator<StorageBean> CREATOR = new Parcelable.Creator<StorageBean>() {
          @Override
          public StorageBean createFromParcel(Parcel source) {
              return new StorageBean(source);
          }
  
          @Override
          public StorageBean[] newArray(int size) {
              return new StorageBean[size];
          }
      };
  }
  