com.global.api.entities.tableservice.BumpStatusCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
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