ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/datasources/PoolKey.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/datasources/PoolKey.java
Status
scanned
Type
file
Name
PoolKey.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2178 (2.1 KB)
MD5
9eb6f986cfa36f6a75b578e39e9a81a4
SHA1
c0a655f30276717a33e0f55f7770d0ae83c502ac
SHA256
3c1c345dd44c93b2e1e9bf1588509bbd6256e7aecf71d74fca47eeedad26c6dc
SHA512

      
    
SHA1_git
8e3786576c739282a5ae5273c1da61b2ad4a950a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
PoolKey.java | 2.1 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.dbcp.dbcp2.datasources; import java.io.Serializable; import java.util.Objects; /** * The key type for entries in a {@link PerUserPoolDataSource}. * * @since 2.0 */ final class PoolKey implements Serializable { private static final long serialVersionUID = 2252771047542484533L; private final String dataSourceName; private final String userName; PoolKey(final String dataSourceName, final String userName) { this.dataSourceName = dataSourceName; this.userName = userName; } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final PoolKey other = (PoolKey) obj; if (!Objects.equals(dataSourceName, other.dataSourceName)) { return false; } return Objects.equals(userName, other.userName); } @Override public int hashCode() { return Objects.hash(dataSourceName, userName); } @Override public String toString() { final StringBuilder sb = new StringBuilder(50); sb.append("PoolKey("); sb.append(dataSourceName); sb.append(')'); return sb.toString(); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
48.57
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-eb6b5ae0-4f88-4e9b-d67c-c6c8e733b1cd apache-2.0 Apache-2.0
URL Start line End line
https://www.apache.org/licenses/LICENSE-2.0 9 9