Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Locale;

public class Main {
    /**
     * Calculate bucket id for the specified path.
     * @param imageFilePath the file path of the local storage.
     * @return an identifier of the album bucket.
     */
    public static int getBucketIdHash(String imageFilePath) {
        return imageFilePath.toLowerCase(Locale.US).hashCode();
    }
}