Java Code Examples for io.norberg.automatter.AutoMatter#Field
The following examples show how to use
io.norberg.automatter.AutoMatter#Field .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NullableFieldsBuilder.java From auto-matter with Apache License 2.0 | 5 votes |
private Value( @AutoMatter.Field("nullableFoo") String nullableFoo, @AutoMatter.Field("customNullableBar") String customNullableBar, @AutoMatter.Field("nonNullQuux") String nonNullQuux, @AutoMatter.Field("nonNullPrimitive") int nonNullPrimitive ) { if (nonNullQuux == null) { throw new NullPointerException("nonNullQuux"); } this.nullableFoo = nullableFoo; this.customNullableBar = customNullableBar; this.nonNullQuux = nonNullQuux; this.nonNullPrimitive = nonNullPrimitive; }
Example 2
Source File: GenericFoobarBuilder.java From auto-matter with Apache License 2.0 | 5 votes |
private Value(@AutoMatter.Field("foo") String foo, @AutoMatter.Field("bar") T bar, @AutoMatter.Field("baz") int baz) { if (foo == null) { throw new NullPointerException("foo"); } if (bar == null) { throw new NullPointerException("bar"); } this.foo = foo; this.bar = bar; this.baz = baz; }
Example 3
Source File: NullableCollectionFieldsBuilder.java From auto-matter with Apache License 2.0 | 5 votes |
private Value(@AutoMatter.Field("strings") List<String> strings, @AutoMatter.Field("integers") Map<String,Integer> integers, @AutoMatter.Field("numbers") Set<Long> numbers) { this.strings = strings; this.integers = integers; this.numbers = numbers; }
Example 4
Source File: FoobarBuilder.java From auto-matter with Apache License 2.0 | 5 votes |
private Value(@AutoMatter.Field("foo") String foo, @AutoMatter.Field("bar") Integer bar, @AutoMatter.Field("baz") int baz) { if (foo == null) { throw new NullPointerException("foo"); } if (bar == null) { throw new NullPointerException("bar"); } this.foo = foo; this.bar = bar; this.baz = baz; }
Example 5
Source File: BarBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
private Value(@AutoMatter.Field("foo") BarBuilder foo) { if (foo == null) { throw new NullPointerException("foo"); } this.foo = foo; }
Example 6
Source File: NullableFieldsBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public String nonNullQuux() { return nonNullQuux; }
Example 7
Source File: FooBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public short aShort() { return aShort; }
Example 8
Source File: NullableCollectionFieldsBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public Map<String,Integer> integers() { return integers; }
Example 9
Source File: GenericNestedBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public GenericNested.Baz<GenericNested.Baz<GenericNested.Baz<Q>>> baz3() { return baz3; }
Example 10
Source File: GenericMultipleBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public T4 field4() { return field4; }
Example 11
Source File: FoobarBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public int baz() { return baz; }
Example 12
Source File: FooBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public char aChar() { return aChar; }
Example 13
Source File: GenericNestedBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public GenericNested.Quux<GenericNested.Quux<String, Integer>, GenericNested.Quux<W, GenericNested.Baz<Q>>> quuxQuuxBaz() { return quuxQuuxBaz; }
Example 14
Source File: GenericMultipleBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public String plain() { return plain; }
Example 15
Source File: GenericSingleBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
private Value(@AutoMatter.Field("thing") T thing) { if (thing == null) { throw new NullPointerException("thing"); } this.thing = thing; }
Example 16
Source File: GenericMultipleBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public T3 field3() { return field3; }
Example 17
Source File: GenericJUTOptionalFieldsBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public Optional<T> bar() { return bar; }
Example 18
Source File: GenericMultipleBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public T2 field2() { return field2; }
Example 19
Source File: GenericCollectionBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public Map<K, V> bars() { return bars; }
Example 20
Source File: CollectionFieldsBuilder.java From auto-matter with Apache License 2.0 | 4 votes |
@AutoMatter.Field @Override public Set<Long> numbers() { return numbers; }