Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Red Hat, Inc. Distributed under license by Red Hat, Inc. All rights reserved. This program is made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: Red Hat, Inc. - initial API and implementation /

André Dietisheim
public abstract class AbstractListCartridgesResponseUnmarshaller<CARTRIDGE> extends AbstractOpenShiftJsonResponseUnmarshaller<List<CARTRIDGE>> {
	protected List<CARTRIDGE> createCartridgeList(ModelNode responseNodeList<CARTRIDGE> cartridges) {
		if (dataNode == null) {
			return cartridges;
		ModelNode cartridgesNode = dataNode.get(.);
		if (cartridgesNode == null) {
			return cartridges;
		for (ModelNode cartridgeNode : cartridgesNode.asList()) {
		return cartridges;
	protected abstract CARTRIDGE createCartridge(ModelNode cartridgeNode);
New to GrepCode? Check out our FAQ X