com.hubspot.jinjava.interpret.DeferredLazyReferenceSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jinjava Show documentation
Show all versions of jinjava Show documentation
Jinja templating engine implemented in Java
The newest version!
package com.hubspot.jinjava.interpret;
import com.google.common.annotations.Beta;
@Beta
public class DeferredLazyReferenceSource
extends DeferredValueImpl
implements OneTimeReconstructible {
private static final DeferredLazyReferenceSource INSTANCE =
new DeferredLazyReferenceSource();
private boolean reconstructed;
private DeferredLazyReferenceSource() {}
private DeferredLazyReferenceSource(Object originalValue) {
super(originalValue);
}
public static DeferredLazyReferenceSource instance() {
return INSTANCE;
}
public static DeferredLazyReferenceSource instance(Object originalValue) {
return new DeferredLazyReferenceSource(originalValue);
}
public boolean isReconstructed() {
return reconstructed;
}
public void setReconstructed(boolean reconstructed) {
this.reconstructed = reconstructed;
}
}