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

com.hubspot.jinjava.interpret.DeferredLazyReferenceSource Maven / Gradle / Ivy

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy