com.minlessika.membership.integration.Sequence 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 Sequence {
UUID uid();
String code();
String name();
String prefix();
String suffix();
int size();
int step();
long nextNumber();
String generate();
Sequence EMPTY = new Sequence() {
@Override
public UUID uid() {
return null;
}
@Override
public String code() {
return null;
}
@Override
public String name() {
return null;
}
@Override
public String prefix() {
return null;
}
@Override
public String suffix() {
return null;
}
@Override
public int size() {
return 0;
}
@Override
public int step() {
return 0;
}
@Override
public long nextNumber() {
return 0;
}
@Override
public String generate() {
return null;
}
};
}