All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.norberg.automatter.example.InheritanceExample Maven / Gradle / Ivy

There is a newer version: 0.26.2
Show newest version
package io.norberg.automatter.example;

import io.norberg.automatter.AutoMatter;

public class InheritanceExample {

  interface Foo {
    String foo();
  }

  interface Bar {
    T bar();
  }

  @AutoMatter
  interface Baz extends Foo, Bar {
    int baz();
  }

  public static void main(final String... args) {
    Baz baz = new BazBuilder()
        .foo("hello")
        .bar(17)
        .baz(4711)
        .build();

    System.out.println(baz);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy