
com.redhat.lightblue.generator.AnnotationIntSequenceMirror Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightblue-java-generator-lib Show documentation
Show all versions of lightblue-java-generator-lib Show documentation
lightblue Java Generator Library
package com.redhat.lightblue.generator;
import java.util.Optional;
public class AnnotationIntSequenceMirror implements IntSequenceMirror {
private final IntSequence intSequence;
public AnnotationIntSequenceMirror(IntSequence intSequence) {
this.intSequence = intSequence;
}
@Override
public Optional initialValue() {
return intSequence.initialValue() == IntSequence.INITIAL_VALUE_UNSET
? Optional.empty()
: Optional.of(intSequence.initialValue());
}
@Override
public String name() {
return intSequence.name();
}
@Override
public boolean isOverwrite() {
return intSequence.overwrite();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy