Skip to content
Snippets Groups Projects
Commit ccc23e29 authored by Yingjian Wang's avatar Yingjian Wang
Browse files

Upload New File

parent d36e246b
No related branches found
No related tags found
No related merge requests found
import java.util.*;
aspect Relation{
uncache Relation.eval();
syn boolean Relation.eval();
eq Subsetof.eval(){
Set left=new HashSet<>();
for(String element : this.getLeft().Set()){
left.add(element);
}
Set right=new HashSet<>();
for(String element : this.getRight().Set()){
right.add(element);
}
return right.containsAll(left);
}
eq Compare.eval(){
return (this.getLeft().eval() - this.getRight().eval())<0;
}
eq Equal.eval(){
return this.getLeft().eval() - this.getRight().eval()==0;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment