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

com.minlessika.membership.integration.Sequence 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 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;
        }
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy