
org.projectodd.Echo Maven / Gradle / Ivy
The newest version!
package org.projectodd;
import com.google.gson.JsonObject;
import java.util.List;
import java.util.stream.Collectors;
/**
* echo Echo
*/
public class Echo {
public static JsonObject main(JsonObject args) {
JsonObject response = new JsonObject();
final List entries = args.entrySet().stream()
.map(entry -> entry.getKey())
.filter(key -> key.startsWith("__ow_"))
.collect(Collectors.toList());
entries.forEach(args::remove);
response.add("echoed", args);
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy