unbbayes.util
Class SetToolkit

java.lang.Object
  extended by unbbayes.util.SetToolkit

public class SetToolkit
extends Object

Classe que fornece mÔøΩtodos estÔøΩticos para operaÔøΩÔøΩes (uniÔøΩo e intersecao) entre conjuntos (List). A operaÔøΩÔøΩo de subtraÔøΩÔøΩo e de pertinÔøΩncia sÔøΩo feitas utilizando mÔøΩtodos do prÔøΩprio List.

Author:
Michael e Rommel

Constructor Summary
SetToolkit()
           
 
Method Summary
static ArrayList<Node> clone(ArrayList<Node> conjunto)
           
static List clone(Collection conjunto)
           
static ArrayList<Node> intersection(ArrayList<Node> conjuntoA, ArrayList<Node> conjuntoB)
          Realiza a interseÔøΩÔøΩo entre dois conjuntos.
static List intersection(List<?> conjuntoA, List<?> conjuntoB)
          Realiza a interseÔøΩÔøΩo entre dois conjuntos.
static ArrayList<Node> union(ArrayList<Node> conjuntoA, ArrayList<Node> conjuntoB)
          Make the union between two sets
static List union(List<?> conjuntoA, List<?> conjuntoB)
          Realiza a uniÔøΩo entre dois conjuntos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetToolkit

public SetToolkit()
Method Detail

union

public static List union(List<?> conjuntoA,
                         List<?> conjuntoB)
Realiza a uniÔøΩo entre dois conjuntos.

Parameters:
conjuntoA - conjunto A
conjuntoB - conjunto B
Returns:
A uniÔøΩo B

union

public static ArrayList<Node> union(ArrayList<Node> conjuntoA,
                                    ArrayList<Node> conjuntoB)
Make the union between two sets

Parameters:
conjuntoA - conjunto A
conjuntoB - conjunto B
Returns:
A uniÔøΩo B

intersection

public static List intersection(List<?> conjuntoA,
                                List<?> conjuntoB)
Realiza a interseÔøΩÔøΩo entre dois conjuntos.

Parameters:
conjuntoA - conjunto A
conjuntoB - conjunto B
Returns:
A interseÔøΩÔøΩo B

intersection

public static ArrayList<Node> intersection(ArrayList<Node> conjuntoA,
                                           ArrayList<Node> conjuntoB)
Realiza a interseÔøΩÔøΩo entre dois conjuntos.

Parameters:
conjuntoA - conjunto A
conjuntoB - conjunto B
Returns:
A interseÔøΩÔøΩo B

clone

public static List clone(Collection conjunto)

clone

public static ArrayList<Node> clone(ArrayList<Node> conjunto)


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.