All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.telekom.m2m.cot.restsdk.inventory.ManagedObjectReferenceCollection Maven / Gradle / Ivy

package com.telekom.m2m.cot.restsdk.inventory;

import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by Patrick Steinert on 29.08.16.
 */
public class ManagedObjectReferenceCollection {

    private final List mos;
    private String self;

    public ManagedObjectReferenceCollection(List mos, String self) {
        this.mos = mos;
        this.self = self;
    }

    public Iterable get() {
        return mos;
    }

    public String getSelf() {
        return self;
    }


    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ManagedObjectReferenceCollection[");
        builder.append(mos.stream().map(ManagedObjectReference::getSelf).collect(Collectors.joining(", ")));
        builder.append("]");
        return builder.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy