public boolean contains(final PeerId peer) {
        return this.conf.contains(peer) || this.oldConf.contains(peer);
    }
Returns true when the conf entry is valid.

@return if the the entry is valid
jraft-core/src/main/java/com/alipay/sofa/jraft/conf/ConfigurationEntry.java