com.jparams.object.builder.utils.CollectionUtils Maven / Gradle / Ivy
package com.jparams.object.builder.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public final class CollectionUtils
{
private CollectionUtils()
{
}
public static List unmodifiableCopy(final List list)
{
return list == null ? Collections.emptyList() : Collections.unmodifiableList(new ArrayList<>(list));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy