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

com.nbsaas.boot.no.rest.generator.LongGenerator Maven / Gradle / Ivy

The newest version!
package com.nbsaas.boot.no.rest.generator;


import com.nbsaas.boot.no.ext.apis.Generator;

public class LongGenerator implements Generator {

    private Long value;

    public LongGenerator(Long value) {
        this.value = value;
    }

    @Override
    public String generate() {
        String stepPart = String.format("%0" + 10 + "d", value);

        return stepPart;
    }

    public static void main(String[] args) {

        for (int i = 0; i < 100000; i++) {
            LongGenerator generator = new LongGenerator(1000L + i);
            //System.out.println(generator.generate());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy