Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*-
  * See the file LICENSE for redistribution information.
  *
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
  *
  */
 
 package com.sleepycat.je.tree;
 
A class that embodies a reference to a BIN that does not rely on a Java reference to the actual BIN.
public class BINReference {
    protected byte[] idKey;
    private long nodeId;
    private DatabaseId databaseId;
    BINReference(long nodeIdDatabaseId databaseIdbyte[] idKey) {
        this. = nodeId;
        this. = databaseId;
        this. = idKey;
    }
    public long getNodeId() {
        return ;
    }
    public DatabaseId getDatabaseId() {
        return ;
    }
    public byte[] getKey() {
        return ;
    }

    
Compare two BINReferences.
    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof BINReference)) {
            return false;
        }
        return ((BINReferenceobj). == ;
    }
    @Override
    public int hashCode() {
        return (int;
    }
    @Override
    public String toString() {
        return "idKey=" + Key.getNoFormatString() +
            " nodeId = " +  +
            " db=" + ;
    }
New to GrepCode? Check out our FAQ X