ibm/openliberty/dependency_injection/src/main/java/io/openliberty/guides/inventory/model/InventoryList.java
<reponame>velfin13/docker-pirate// tag::copyright[]
/*******************************************************************************
 * Copyright (c) 2017, 2018 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - Initial implementation
 *******************************************************************************/
// end::copyright[]
package io.openliberty.guides.inventory.model;

import java.util.List;

public class InventoryList {

  private List<SystemData> systems;

  public InventoryList(List<SystemData> systems) {
    this.systems = systems;
  }

  public List<SystemData> getSystems() {
    return systems;
  }

  public int getTotal() {
    return systems.size();
  }
}
