src/main/java/application/rest/v1/Watcher.java
/**
     * Utility method for processing a generic list from the CustomObjectsApi.
     */
Utility method for processing a generic list from the CustomObjectsApi.
Utility method for processing a generic list from the CustomObjectsApi .
public static List<Object> processCustomObjectsApiList(ApiClient client, Object objectList, AtomicReference<String> resourceVersion) {
        JsonObject jsonList = KAppNavEndpoint.getItemAsObject(client, objectList);
        if (jsonList != null) {
            String version = KAppNavEndpoint.getResourceVersion(jsonList);
            resourceVersion.set(version);
            List<Object> list = new ArrayList<>();
            KAppNavEndpoint.writeItemsToList(jsonList, list);
            return list;
        }
        return Collections.emptyList();
    }
public static List < Object > processCustomObjectsApiList ( ApiClient client , Object objectList , AtomicReference < String > resourceVersion ) { JsonObject jsonList = KAppNavEndpoint . getItemAsObject ( client , objectList ) ; if ( jsonList != null ) { String version = KAppNavEndpoint . getResourceVersion ( jsonList ) ; resourceVersion . set ( version ) ; List < Object > list = new ArrayList < > ( ) ; KAppNavEndpoint . writeItemsToList ( jsonList , list ) ; return list ; } return Collections . emptyList ( ) ; }
Utility method for processing a generic list from the CustomObjectsApi.
Utility method for processing a generic list from the CustomObjectsApi .