
dev.sixpack.api.data.Context Maven / Gradle / Ivy
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