com.github.pjfanning.xlsx.impl.LazySupplier Maven / Gradle / Ivy
The newest version!
package com.github.pjfanning.xlsx.impl;
final class LazySupplier implements Supplier {
private T content;
private final java.util.function.Supplier functionalSupplier;
LazySupplier(java.util.function.Supplier functionalSupplier) {
this.functionalSupplier = functionalSupplier;
}
@Override
public Object getContent() {
if (content == null) {
content = functionalSupplier.get();
}
return content;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy