Class ReadOnlyObjects.GHMetaGettersFinalCreator
- java.lang.Object
-
- org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaGettersFinalCreator
-
- All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
- Enclosing class:
- ReadOnlyObjects
public static class ReadOnlyObjects.GHMetaGettersFinalCreator extends Object implements ReadOnlyObjects.GHMetaExample
This version uses only public getters and returns unmodifiable listsPro:
- Fields final and lists unmodifiable
- Construction behavior can be controlled - if values depended on each other or needed to be set in a specific order, this could do that.
- JsonProrperty "required" works on JsonCreator constructors - lets annotation define required values
- There is no way you'd know about this without some research
- Specific annotations needed
- Nonnull annotations are misleading - null value is not checked even for "required" constructor parameters
- Brittle and verbose - not friendly to large number of fields
- Author:
- Liam Newman
- See Also:
GHMeta
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getApi()
Gets api.List<String>
getGit()
Gets git.List<String>
getHooks()
Gets hooks.List<String>
getImporter()
Gets importer.List<String>
getPages()
Gets pages.List<String>
getWeb()
Gets web.boolean
isVerifiablePasswordAuthentication()
Is verifiable password authentication boolean.
-
-
-
Method Detail
-
isVerifiablePasswordAuthentication
public boolean isVerifiablePasswordAuthentication()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Is verifiable password authentication boolean.- Specified by:
isVerifiablePasswordAuthentication
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the boolean
-
getHooks
public List<String> getHooks()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets hooks.- Specified by:
getHooks
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the hooks
-
getGit
public List<String> getGit()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets git.- Specified by:
getGit
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the git
-
getWeb
public List<String> getWeb()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets web.- Specified by:
getWeb
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the web
-
getApi
public List<String> getApi()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets api.- Specified by:
getApi
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the api
-
getPages
public List<String> getPages()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets pages.- Specified by:
getPages
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the pages
-
getImporter
public List<String> getImporter()
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets importer.- Specified by:
getImporter
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the importer
-
-