com.minlessika.membership.integration.Currency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of membership-integration Show documentation
Show all versions of membership-integration Show documentation
It's a library to help developers to integration membership services to another project.
package com.minlessika.membership.integration;
import java.util.UUID;
public interface Currency {
UUID uid();
String code();
String name();
String symbol();
boolean after();
int precision();
double convert(double amount, Currency currency);
String toString(double amount);
Currency EMPTY = new Currency() {
@Override
public UUID uid() {
return null;
}
@Override
public String code() {
return null;
}
@Override
public String name() {
return null;
}
@Override
public String symbol() {
return null;
}
@Override
public boolean after() {
return false;
}
@Override
public int precision() {
return 0;
}
@Override
public double convert(double amount, Currency currency) {
return 0;
}
@Override
public String toString(double amount) {
return null;
}
};
}