MCPcopy Create free account
hub / github.com/dreamhead/moco / with

Method with

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:313–315  ·  view source on GitHub ↗
(final ResponseElement element)

Source from the content-addressed store, hash-verified

311 }
312
313 public static ResponseHandler with(final ResponseElement element) {
314 return responseHandler(checkNotNull(element, "Response element should not be null"));
315 }
316
317 public static ResponseHandler with(final String text) {
318 return with(text(checkNotNullOrEmpty(text, "Text should not be null")));

Calls 3

textMethod · 0.95
responseHandlerMethod · 0.80
checkNotNullOrEmptyMethod · 0.80