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

com.mageddo.tobby.internal.utils.Sets Maven / Gradle / Ivy

There is a newer version: 2.1.6-alpha
Show newest version
package com.mageddo.tobby.internal.utils;

import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class Sets {

  public static  Set of(T... values) {
    return Stream.of(values)
        .collect(Collectors.toSet());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy