All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.orientechnologies.orient.server.OHashToken Maven / Gradle / Ivy

There is a newer version: 3.2.33
Show newest version
package com.orientechnologies.orient.server;

import java.util.Arrays;

public class OHashToken {

  private byte[] binaryToken;

  public OHashToken(byte[] binaryToken) {
    this.binaryToken = binaryToken;
  }

  @Override
  public int hashCode() {
    return Arrays.hashCode(binaryToken);
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (!(obj instanceof OHashToken))
      return false;
    return Arrays.equals(this.binaryToken, ((OHashToken) obj).binaryToken);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy