Class ReadOnlyObjects.GHMetaGettersUnmodifiable
java.lang.Object
org.kohsuke.github.example.dataobject.ReadOnlyObjects.GHMetaGettersUnmodifiable
- All Implemented Interfaces:
ReadOnlyObjects.GHMetaExample
- Enclosing class:
- ReadOnlyObjects
public static class ReadOnlyObjects.GHMetaGettersUnmodifiable
extends Object
implements ReadOnlyObjects.GHMetaExample
This version uses only public getters and returns unmodifiable lists.
Pro:
- Very Easy to create
- Minimal code
- Minimal annotations
- Fields effectively final and lists unmodifiable
- Effectively final is not quite really final
- If one of the lists were missing (an option member, for example), it will throw NPE but we could mitigate by checking for null or assigning a default.
- Author:
- Liam Newman
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate default GHMetaGettersUnmodifiable instance -
Method Summary
-
Constructor Details
-
GHMetaGettersUnmodifiable
public GHMetaGettersUnmodifiable()Create default GHMetaGettersUnmodifiable instance
-
-
Method Details
-
isVerifiablePasswordAuthentication
public boolean isVerifiablePasswordAuthentication()Description copied from interface:ReadOnlyObjects.GHMetaExampleIs verifiable password authentication boolean.- Specified by:
isVerifiablePasswordAuthenticationin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the boolean
-
getHooks
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets hooks.- Specified by:
getHooksin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the hooks
-
getGit
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets git.- Specified by:
getGitin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the git
-
getWeb
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets web.- Specified by:
getWebin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the web
-
getApi
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets api.- Specified by:
getApiin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the api
-
getPages
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets pages.- Specified by:
getPagesin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the pages
-
getImporter
Description copied from interface:ReadOnlyObjects.GHMetaExampleGets importer.- Specified by:
getImporterin interfaceReadOnlyObjects.GHMetaExample- Returns:
- the importer
-