Class ReadOnlyObjects.GHMetaGettersFinal
java.lang.Object
org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaGettersFinal
- All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
- Enclosing class:
- ReadOnlyObjects
public static class ReadOnlyObjects.GHMetaGettersFinal
extends Object
implements ReadOnlyObjects.GHMetaExample
This version uses only public getters and returns unmodifiable lists and has final fields
Pro:
- Moderate amount of code
- More annotations
- Fields final and lists unmodifiable
- Extra allocations - default array lists will be replaced by Jackson (yes, even though they are final)
- Added constructor is annoying
- If this object could be refreshed or populated, then the final is misleading (and possibly buggy)
- Author:
- Liam Newman
- See Also:
-
Method Details
-
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
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets hooks.- Specified by:
getHooks
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the hooks
-
getGit
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets git.- Specified by:
getGit
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the git
-
getWeb
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets web.- Specified by:
getWeb
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the web
-
getApi
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets api.- Specified by:
getApi
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the api
-
getPages
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets pages.- Specified by:
getPages
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the pages
-
getImporter
Description copied from interface:ReadOnlyObjects.GHMetaExample
Gets importer.- Specified by:
getImporter
in interfaceReadOnlyObjects.GHMetaExample
- Returns:
- the importer
-