All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.entities.tableservice.BumpStatusCollection Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.entities.tableservice;

import java.util.*;

public class BumpStatusCollection {
    private HashMap bumpStatus;

    public int get(String status) {
        Integer value = bumpStatus.get(status);
        return value == null ? 0 : value;
    }

    public String[] getKeys() {
        return bumpStatus.keySet().toArray(new String[bumpStatus.keySet().size()]);
    }

    public BumpStatusCollection(String statusString) {
        bumpStatus = new HashMap();

        int index = 1;
        for(String status: statusString.split(","))
            bumpStatus.put(status.trim(), index++);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy