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

it.auties.protobuf.builtin.ProtobufRepeatedMixin Maven / Gradle / Ivy

The newest version!
package it.auties.protobuf.builtin;

import it.auties.protobuf.annotation.ProtobufDefaultValue;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

@SuppressWarnings("unused")
public class ProtobufRepeatedMixin {
    @ProtobufDefaultValue
    public static  List newList() {
        return new ArrayList<>();
    }

    @ProtobufDefaultValue
    public static  Set newSet() {
        return new HashSet<>();
    }

    @ProtobufDefaultValue
    public static  Queue newQueue() {
        return new LinkedList<>();
    }

    @ProtobufDefaultValue
    public static  Deque newDeque() {
        return new LinkedList<>();
    }

    @ProtobufDefaultValue
    public static  ConcurrentHashMap.KeySetView newKeySet() {
        return ConcurrentHashMap.newKeySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy