Package de.coho04.githubapi.entities
Klasse GHRepositoryCache
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHRepositoryCache
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Repository Cache.
It provides methods for fetching data about the repository cache such as its full name, active caches size in bytes, and active caches count.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHRepositoryCache(org.json.JSONObject jsonObject) Constructs a new GHRepositoryCache instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintReturns the active caches count of the repository cache.intReturns the active caches size in bytes of the repository cache.Returns the full name of the repository cache.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHRepositoryCache
public GHRepositoryCache(org.json.JSONObject jsonObject) Constructs a new GHRepositoryCache instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the repository cache data
-
-
Methodendetails
-
getActiveCachesCount
public int getActiveCachesCount()Returns the active caches count of the repository cache.- Gibt zurück:
- the active caches count of the repository cache
-
getActiveCachesSizeInBytes
public int getActiveCachesSizeInBytes()Returns the active caches size in bytes of the repository cache.- Gibt zurück:
- the active caches size in bytes of the repository cache
-
getFullName
Returns the full name of the repository cache.- Gibt zurück:
- the full name of the repository cache
-