Sometimes I just need to define a lot of settings for some class, it's just hard to define 5 or more properties in constructor, because you don't really know what property you are setting. In JavaScript you can use name for settings with JSON style. Is something similar possible in Java? Or are there any suggestion how I should define large amount of details inside code (and I mean only inside code needed attributes, so xml is not possible here).
$.plugin.defaults = {
css: {
padding: 0,
margin: 0,
textAlign: 'center',
color: '#000',
border: '0px none'
}
}