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

com.emc.mongoose.base.item.naming.ItemNameInput Maven / Gradle / Ivy

There is a newer version: 4.3.10
Show newest version
package com.emc.mongoose.base.item.naming;

import com.github.akurilov.commons.io.Input;

import java.util.List;

public interface ItemNameInput
				extends Input {

	long lastId();

	enum ItemNamingType {
		RANDOM, SERIAL
	}

	@Override
	String get();

	@Override
	int get(final List buffer, final int limit);

	interface Builder {

		 T type(final ItemNamingType type);

		 T radix(final int radix);

		 T prefix(final String prefix);

		 T length(final int length);

		 T seed(final long offset);

		 T step(final int step);

		 T build();

		static  T newInstance() {
			return (T) new ItemNameInputBuilder();
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy