prefs-zookeeper/src/main/java/com/adobe/prefs/zookeeper/ZkPreferences.java
static boolean isValueNode(Stat stat) {
        if (stat == null) {
            return false;
        }
        return stat.getDataLength() > 0 || stat.getVersion() > 0;
    }
/**
     * Decides whether a znode is to be treated as a preference key.
     * <p>It will return true if either of the following is true:<ul>
     *     <li>the node has a non-empty value</li>
     *     <li>the node has never had any children (cversion == 0)</li>
     * </ul></p>
     *
     * If the node has an empty value, but it has a both `cversion` and `version` values greater than 0,
     * it will only show as a child node and not a key (although it is obvious that it used to be a "key",
     * not only a "node").<br/>
     * This is because the zookeeper console client does not allow creating a node with an empty value,
     * so any node that was created with that client would also appear as a key for as long as that node exists.
     */
Decides whether a znode is to be treated as a preference key.
It will return true if either of the following is true:
the node has a non-empty value
the node has never had any children (cversion == 0)


If the node has an empty value, but it has a both `cversion` and `version` values greater than 0,
it will only show as a child node and not a key (although it is obvious that it used to be a "key",
not only a "node").
This is because the zookeeper console client does not allow creating a node with an empty value,
so any node that was created with that client would also appear as a key for as long as that node exists.
Decides whether a znode is to be treated as a preference key . It will return true if either of the following is true : the node has a non - empty value the node has never had any children ( cversion == 0 ) If the node has an empty value but it has a both ` cversion ` and ` version ` values greater than 0 it will only show as a child node and not a key ( although it is obvious that it used to be a " key " not only a " node " ) . This is because the zookeeper console client does not allow creating a node with an empty value so any node that was created with that client would also appear as a key for as long as that node exists .
static boolean isValueNode(Stat stat) {
        if (stat == null) {
            return false;
        }
        return stat.getDataLength() > 0 || stat.getVersion() > 0;
    }
static boolean isValueNode ( Stat stat ) { if ( stat == null ) { return false ; } return stat . getDataLength ( ) > 0 || stat . getVersion ( ) > 0 ; }
Decides whether a znode is to be treated as a preference key.
Decides whether a znode is to be treated as a preference key .