Created
February 13, 2017 16:08
-
-
Save autoletics/f85087e7af308ad97e534ce6e384ce23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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