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

javolution.util.internal.set.AtomicSetImpl Maven / Gradle / Ivy

Go to download

Only the Java Core part of Javolution library, with slight modifications for use in MSFTBX.

There is a newer version: 6.11.8
Show newest version
/*
 * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
 * Copyright (C) 2012 - Javolution (http://javolution.org/)
 * All rights reserved.
 * 
 * Permission to use, copy, modify, and distribute this software is
 * freely granted, provided that this notice is preserved.
 */
package javolution.util.internal.set;

import javolution.util.internal.collection.AtomicCollectionImpl;
import javolution.util.service.SetService;

/**
 * An atomic view over a set allowing concurrent access and sequential updates.
 */
public class AtomicSetImpl extends AtomicCollectionImpl implements
        SetService {

    private static final long serialVersionUID = 0x600L; // Version.

    public AtomicSetImpl(SetService target) {
        super(target);
    }

    @SuppressWarnings("unchecked")
    @Override
    public SetService[] split(int n, boolean updateable) { 
        return new SetService[] { this }; // Split not supported.
    }
 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy