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

com.minlessika.membership.integration.Currency Maven / Gradle / Ivy

Go to download

It's a library to help developers to integration membership services to another project.

There is a newer version: 0.3.1
Show newest version
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;
		}
	};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy