Skip to content

Tag: pojo

how to auto-fill an object in java?

i have a simple pojo so now once i initialize the name of the POJO with any name i want the rest of the attributes to auto fill. eg: animal(“cat”) should auto-fill other attributes such as max_life and features based on a cat. is there any property’s file or any way that will detect the init…

Java Stream filter with regex not working

hope somebody can help me. I have a ArrayList of a Invoice class. What I’m trying to get is to filter this ArrayListand find the first element which one of its properties matches with a regex. The Invoiceclass looks like this: I’m filtering with this regex (\D+) in order to find if there is any va…

jsonschema and date type

I’m just getting started with jsonschema and an example under “Using jsonschema2pojo within your Java project (embedded)” in https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started having in mind data types of jsonschema listed here https://developers.google.com/discovery/v1/ty…