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

gnu.trove.list.TLinkableAdapter Maven / Gradle / Ivy

Go to download

The Trove library provides high speed regular and primitive collections for Java.

The newest version!
package gnu.trove.list;

/**
 * Simple adapter class implementing {@link TLinkable}, so you don't have to. Example:
 * 
	private class MyObject extends TLinkableAdapter {
		private final String value;

		MyObject( String value ) {
			this.value = value;
		}
		
		public String getValue() {
			return value;
		}
	}
 * 
*/ public abstract class TLinkableAdapter implements TLinkable { private volatile T next; private volatile T prev; @Override public T getNext() { return next; } @Override public void setNext( T next ) { this.next = next; } @Override public T getPrevious() { return prev; } @Override public void setPrevious( T prev ) { this.prev = prev; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy