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

com.aol.micro.server.application.registry.Application Maven / Gradle / Ivy

There is a newer version: 0.91.11
Show newest version
package com.aol.micro.server.application.registry;

import java.util.Iterator;
import java.util.List;

import lombok.AccessLevel;
import lombok.experimental.FieldDefaults;

import org.pcollections.ConsPStack;
import org.pcollections.PStack;

import com.aol.micro.server.rest.jackson.JacksonUtil;

@FieldDefaults(makeFinal=true, level=AccessLevel.PRIVATE)
public class Application implements Iterable{
	
	
	PStack entries;

	public Application(final List entries) {
		this.entries = ConsPStack.from(entries);
	}

	@Override
	public Iterator iterator() {
		return entries.iterator();
	}
	
	public String toString(){
		return JacksonUtil.serializeToJson(entries);
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy