class StorageReference implements Comparable<StorageReference> {

  @NonNull
  public String getName() {
    String path = mStorageUri.getPath();
    assert path != null;
    int lastIndex = path.lastIndexOf('/');
    if (lastIndex != -1) {
      return path.substring(lastIndex + 1);
    }
    return path;
  }

  @SuppressWarnings("ConstantConditions")  StorageReference(@NonNull Uri storageUri, @NonNull FirebaseStorage firebaseStorage);

}