@Test public void setCypher() throws Exception { assertFalse(cliArgs.getCypher().isPresent()); cliArgs.setCypher("foo"); assertTrue(cliArgs.getCypher().isPresent()); assertEquals("foo", cliArgs.getCypher().get()); cliArgs.setCypher(null); assertFalse(cliArgs.getCypher().isPresent()); }
public void setCypher(@Nullable String cypher) { this.cypher = Optional.ofNullable(cypher); }
CliArgs { public void setCypher(@Nullable String cypher) { this.cypher = Optional.ofNullable(cypher); } }
CliArgs { public void setCypher(@Nullable String cypher) { this.cypher = Optional.ofNullable(cypher); }  }
CliArgs { public void setCypher(@Nullable String cypher) { this.cypher = Optional.ofNullable(cypher); }  void setScheme(@Nullable String primary, @Nonnull String fallback); void setPort(int port); void setUsername(@Nullable String primary, @Nonnull String fallback); void setPassword(@Nullable String primary, @Nonnull String fallback); void setDatabase(@Nullable String databaseName); void setFormat(@Nonnull Format format); void setCypher(@Nullable String cypher); void setEncryption(Encryption encryption); void setNonInteractive(boolean nonInteractive); void setInputFilename(String inputFilename); @Nonnull String getScheme(); @Nonnull String getHost(); int getPort(); @Nonnull String getUsername(); @Nonnull String getPassword(); @Nonnull String getDatabase(); @Nonnull FailBehavior getFailBehavior(); @Nonnull Optional<String> getCypher(); @Nonnull Format getFormat(); Encryption getEncryption(); boolean getDebugMode(); boolean getNonInteractive(); String getInputFilename(); boolean getVersion(); void setVersion(boolean version); boolean getDriverVersion(); void setDriverVersion(boolean version); boolean isStringShell(); boolean getWrap(); void setWrap(boolean wrap); int getNumSampleRows(); void setNumSampleRows(Integer numSampleRows); ParameterMap getParameters(); }
CliArgs { public void setCypher(@Nullable String cypher) { this.cypher = Optional.ofNullable(cypher); }  void setScheme(@Nullable String primary, @Nonnull String fallback); void setPort(int port); void setUsername(@Nullable String primary, @Nonnull String fallback); void setPassword(@Nullable String primary, @Nonnull String fallback); void setDatabase(@Nullable String databaseName); void setFormat(@Nonnull Format format); void setCypher(@Nullable String cypher); void setEncryption(Encryption encryption); void setNonInteractive(boolean nonInteractive); void setInputFilename(String inputFilename); @Nonnull String getScheme(); @Nonnull String getHost(); int getPort(); @Nonnull String getUsername(); @Nonnull String getPassword(); @Nonnull String getDatabase(); @Nonnull FailBehavior getFailBehavior(); @Nonnull Optional<String> getCypher(); @Nonnull Format getFormat(); Encryption getEncryption(); boolean getDebugMode(); boolean getNonInteractive(); String getInputFilename(); boolean getVersion(); void setVersion(boolean version); boolean getDriverVersion(); void setDriverVersion(boolean version); boolean isStringShell(); boolean getWrap(); void setWrap(boolean wrap); int getNumSampleRows(); void setNumSampleRows(Integer numSampleRows); ParameterMap getParameters();  }