Package com.jcabi.github
Class PublicKey.Smart
java.lang.Object
com.jcabi.github.PublicKey.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,PublicKey
- Enclosing interface:
- PublicKey
@Immutable
@Loggable(1)
public static final class PublicKey.Smart
extends Object
implements PublicKey
Smart PublicKey with extra features.
- Since:
- 0.1
- Suppressed Checkstyle violations:
- MultipleStringLiterals (500 lines)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.PublicKey
PublicKey.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.JsonObjectjson()Describe it in a JSON object.key()Get its key value.voidChange its value.intnumber()ID Number of this public key.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.title()Get its title.voidChange its title.url()Get its URL.user()User we're in.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
pkey- Public key
-
-
Method Details
-
key
Get its key value.- Returns:
- Value of public key
- Throws:
IOException- If there is any I/O problem
-
key
Change its value.- Parameters:
value- Title of public key- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of public key
- Throws:
IOException- If there is any I/O problem
-
title
Get its title.- Returns:
- Title of public key
- Throws:
IOException- If there is any I/O problem
-
title
Change its title.- Parameters:
text- Title of public key- Throws:
IOException- If there is any I/O problem
-
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
Description copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
user
Description copied from interface:PublicKeyUser we're in. -
number
public int number()Description copied from interface:PublicKeyID Number of this public key.
-