Code example for BitSet

Methods: equals

0
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
 
        AreaNode<C,P> an = (AreaNode<C,P>) obj;
 
        if(!an.rootBitSet.equals(this.rootBitSet))
            return false; 
        if(!an.conHir.equals(this.conHir))
            return false; 
        if(!an.pRelations.containsAll(this.pRelations))//? maybe equal is better
            return false; 
 
        return true; 
    } 
 
    @Override 
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append( "\n*******AreaNode*******\n" );
        if( hasName )