This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "record", | |
| "name": "Type6", | |
| "namespace": "co.uk.dalelane", | |
| "fields": [ | |
| { | |
| "name": "favouriteDirections", | |
| "type": { | |
| "type": "map", | |
| "name": "direction", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Map<CharSequence, compass> everyonesFavourite = new HashMap<CharSequence, compass>(); | |
| everyonesFavourite.put("alice", compass.NORTH); | |
| everyonesFavourite.put("bob", compass.EAST); | |
| Type6 myThing = new Type6(); | |
| myThing.setFavouriteDirections(everyonesFavourite); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "record", | |
| "name": "Type7", | |
| "namespace": "co.uk.dalelane", | |
| "fields": [ | |
| { | |
| "name": "favouriteLists", | |
| "type": { | |
| "type": "map", | |
| "name": "Things", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<CharSequence> dalesFavourites = new ArrayList<CharSequence>(); | |
| dalesFavourites.add("Faith"); | |
| dalesFavourites.add("Grace"); | |
| List<CharSequence> bobsFavourites = new ArrayList<CharSequence>(); | |
| bobsFavourites.add("Alice"); | |
| Map<CharSequence, List<CharSequence>> everyonesFavourites = new HashMap<CharSequence, List<CharSequence>>(); | |
| everyonesFavourites.put("dale", dalesFavourites); | |
| everyonesFavourites.put("bob", bobsFavourites); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "record", | |
| "name": "Type8", | |
| "namespace": "co.uk.dalelane", | |
| "fields": [ | |
| { | |
| "name": "variousThings", | |
| "type": [ "string", "int" ] | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type8 myThingA = new Type8(); | |
| myThingA.setVariousThings("a string"); | |
| myThingA.setDifferentNumberTypes(123); | |
| Type8 myThingB = new Type8(); | |
| myThingB.setVariousThings(11); | |
| myThingB.setDifferentNumberTypes(1.23); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "record", | |
| "name": "Type9", | |
| "namespace": "co.uk.dalelane", | |
| "fields": [ | |
| { | |
| "name": "requiredString", | |
| "type": "string" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type9 myThingA = new Type9(); | |
| myThingA.setRequiredString("Hello"); | |
| myThingA.setOptionalString("World"); | |
| Type9 myThingB = new Type9(); | |
| myThingB.setRequiredString("Hello"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "record", | |
| "name": "Type10", | |
| "namespace": "co.uk.dalelane", | |
| "fields": [ | |
| { | |
| "name": "whenItHappened", | |
| "type": "long", | |
| "logicalType": "date" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type10 myThing = new Type10(); | |
| myThing.setWhenItHappened(LocalDate.now().toEpochDay()); |