![JAR search and dependency download from the Maven repository](/logo.png)
com.evrythng.thng.resource.model.store.SequentialShortIdTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thng-resource-model Show documentation
Show all versions of thng-resource-model Show documentation
Models for REST resources representations.
/*
* (c) Copyright Reserved EVRYTHNG Limited 2016. All rights reserved.
* Use of this material is subject to license.
* Copying and unauthorised use of this material strictly prohibited.
*/
package com.evrythng.thng.resource.model.store;
public class SequentialShortIdTemplate extends FragmentedShortIdTemplate {
private PaddingType padding;
public static final String PADDING = "padding";
private String paddingChar;
public static final String PADDING_CHAR = "paddingChar";
private Long start;
public static final String START = "start";
private Long increment;
public static final String INCREMENT = "increment";
public SequentialShortIdTemplate() {
setType(Type.SEQUENTIAL);
}
public static enum PaddingType {
ZERO, CHAR;
}
public PaddingType getPadding() {
return padding;
}
public void setPadding(final PaddingType padding) {
this.padding = padding;
}
public String getPaddingChar() {
return paddingChar;
}
public void setPaddingChar(final String paddingChar) {
this.paddingChar = paddingChar;
}
public Long getStart() {
return start;
}
public void setStart(final Long start) {
this.start = start;
}
public Long getIncrement() {
return increment;
}
public void setIncrement(final Long increment) {
this.increment = increment;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy