Code example for Supplier

Methods: get

0
        name = "--option2", 
        handler = StringSetOptionHandler.class) 
    private Supplier<ImmutableSet<String>> option2;
 
    public ImmutableSet<String> getOption1() {
      return option1.get();
    } 
 
    public ImmutableSet<String> getOption2() {
      return option2.get();
    } 
  } 
 
  @Test
  public void testDefaultValues() throws CmdLineException { 
    TestBean bean = new TestBean();
    CmdLineParser parser = new CmdLineParser(bean);
    parser.parseArgument(
        "--option2", "a", "b"); 
    assertEquals(ImmutableSet.of(), bean.getOption1());
Connect your IDE to all the code out there  Get Codota for Java