Title: Foreign Function Interface Author: Charles Oliver Nutter Organization: Red Hat Owner: Charles Oliver Nutter Created: 2014/01/28 Type: Feature State: Draft Exposure: Open Component: --/-- Scope: JDK
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 java.io.*; | |
import javax.script.*; | |
import org.python.core.PySystemState; | |
import org.python.core.PyString; | |
import org.python.util.PythonInterpreter; | |
/** | |
* This class executes the AsciiDoc python scripts (asciidoc.py and a2x.py) from | |
* Java using the Jython interpreter. | |
* |
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
public class Person { | |
//The syntax obj#field, uses the new operator # which represents a direct access to the field (without getter/setter) | |
//Default public getter/setter | |
private String firstName : (); | |
//Explicitly defined getter/setter using lambda, exact equivalent as the default syntax ().By Default visibility is public | |
private String lastName : (()-> this#lastName, (lastName)-> this#lastName = lastName); |
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
package com.hazelcast.mapred.test; | |
import com.hazelcast.core.CompletableFuture; | |
import com.hazelcast.core.HazelcastInstance; | |
import com.hazelcast.core.IMap; | |
import com.hazelcast.mapred.*; | |
import java.util.List; | |
import java.util.Map; |
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
#!/bin/bash | |
if [ `id -u` -ne 0 ]; then | |
echo "Rippling uninstall must be run by root" | |
exit 1 | |
fi | |
sudo launchctl unload /Library/LaunchDaemons/com.rippling.* | |
sudo rm -rf /Library/LaunchDaemons/com.rippling.* | |
sudo rm -rf /opt/rippling |