Skip to content

Instantly share code, notes, and snippets.

@autoletics
Created February 13, 2017 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save autoletics/f85087e7af308ad97e534ce6e384ce23 to your computer and use it in GitHub Desktop.
Save autoletics/f85087e7af308ad97e534ce6e384ce23 to your computer and use it in GitHub Desktop.
import static org.jinspired.probes.Probes.*;
private static final Name USER = name("user");
private static final Name USER_ID = USER.name("id");
private static final Name USER_NAME = USER.name("name");
public static void main(String... args) {
final Environment env = context().getEnvironment();
// set the id and name for the user structure
env.setLong(USER_ID, 10);
env.setString(USER_NAME, "Ben");
// remove the user structure
env.remove(USER);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment