001    package rac.visitor;
002    import rac.*;
003    
004    /**
005     * Visitor that returns true if the RAC is empty.
006     * @author Mathias Ricken - Copyright 2008 - All rights reserved.
007     */
008    public class IsEmpty<T> implements IRACVisitor<T,Boolean,Void> {
009      public Boolean emptyCase(IRAContainer<T> host, Void... inp) {
010        return true;
011      }
012      public Boolean nonEmptyCase(IRAContainer<T> host, Void... inp){
013        return false;
014      }
015    }