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

ch.lambdaj.group.GroupConditions Maven / Gradle / Ivy

// Modified or written by Ex Machina SAGL for inclusion with lambdaj.
// Copyright (c) 2009 Mario Fusco.
// Licensed under the Apache License, Version 2.0 (the "License")

package ch.lambdaj.group;

import java.util.*;

/**
 * Defines a list of GroupConditions.
 * Extending it makes easy to create a simple DSL that creates GroupConditions for some specific objects of your domain.
 * @author Mario Fusco
 */
public class GroupConditions extends LinkedList {

	private static final long serialVersionUID = 1L;

	public void by(String by) {
		add(new StringGroupCondition(by));
	}

	public void as(String alias) {
		getLast().as(alias);
	}

	public void head(String property) {
		getLast().head(property);
	}

	public void head(String property, String alias) {
		getLast().head(alias, property);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy