MCPcopy
hub / github.com/remkop/picocli / assertTrue

Method assertTrue

src/main/java/picocli/CommandLine.java:18457–18459  ·  view source on GitHub ↗
(boolean condition, String message)

Source from the content-addressed store, hash-verified

18455 static int hashCode(Object obj) {return obj == null ? 0 : obj.hashCode(); }
18456 static int hashCode(boolean bool) {return bool ? 1 : 0; }
18457 static void assertTrue(boolean condition, String message) {
18458 if (!condition) throw new IllegalStateException(message);
18459 }
18460 static void assertTrue(boolean condition, IHelpSectionRenderer producer) {
18461 if (!condition) throw new IllegalStateException(producer.render(null));
18462 }

Calls 1

renderMethod · 0.65