dev.sixpack.api.data.Context Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK to develop generators part of the Sixpack solution
The newest version!
package dev.sixpack.api.data;
import lombok.*;
/**
* Context is a holder for metadata about the data generation request that includes predefined fields as well as
* custom map of key-value pairs accessible through methods get, set and unset.
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Context {
private int iteration;
private JMap details = new JMap();
public Context set(String key, Object value) {
details.put(key, value);
return this;
}
public Context unSet(String key) {
details.remove(key);
return this;
}
public Object get(String key) {
return details.get(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy