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

com.github.asteraether.tomlib.storage.BufferedStack Maven / Gradle / Ivy

The newest version!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.github.asteraether.tomlib.storage;

/**
 *
 * @author Thomas
 * @param 
 */
public class BufferedStack extends Stack {

    /**
     *
     * @param capacity
     */
    public BufferedStack(int capacity) {
        super(capacity);
    }

    /**
     *
     * @return
     */
    @Override
    public synchronized T pop() {
        return super.pop();
    }

    /**
     *
     * @param value
     */
    @Override
    public synchronized void push(T value) {
        super.push(value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy