ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/value/ValueEnum.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/value/ValueEnum.java
Status
scanned
Type
file
Name
ValueEnum.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
1046 (1.0 KB)
MD5
b6aee6cce33598b10d06c136e167ed2e
SHA1
b919c0991857cfd659d8e4d1b114634b2f922767
SHA256
b4632868e28dbf045aa5b40b6f5c5954811698c3759896ee52692a30f23ae57f
SHA512

      
    
SHA1_git
4b4af84802ad0a8d0b8ec74979d773b476a61181
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ValueEnum.java | 1.0 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.value; import org.h2.util.StringUtils; /** * ENUM value. */ public final class ValueEnum extends ValueEnumBase { private final ExtTypeInfoEnum enumerators; ValueEnum(ExtTypeInfoEnum enumerators, String label, int ordinal) { super(label, ordinal); this.enumerators = enumerators; } @Override public TypeInfo getType() { return enumerators.getType(); } public ExtTypeInfoEnum getEnumerators() { return enumerators; } @Override public StringBuilder getSQL(StringBuilder builder, int sqlFlags) { if ((sqlFlags & NO_CASTS) == 0) { StringUtils.quoteStringSQL(builder.append("CAST("), label).append(" AS "); return enumerators.getType().getSQL(builder, sqlFlags).append(')'); } return StringUtils.quoteStringSQL(builder, label); } }
Detected license expression

      
    
Detected license expression (SPDX)

      
    
Percentage of license text
10.89
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License expression License clue details
(mpl-2.0 OR epl-1.0) AND proprietary-license {'score': 20.37, 'matcher': '3-seq', 'end_line': 3, 'rule_url': 'https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mpl-2.0_or_epl-1.0_and_proprietary-license_2.RULE', 'from_file': None, 'start_line': 2, 'matched_text': ' * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,\n * and the EPL 1.0 (https://h2database.com/html/license.html).', 'match_coverage': 20.37, 'matched_length': 11, 'rule_relevance': 100, 'rule_identifier': 'mpl-2.0_or_epl-1.0_and_proprietary-license_2.RULE', 'license_expression': '(mpl-2.0 OR epl-1.0) AND proprietary-license', 'license_expression_spdx': '(MPL-2.0 OR EPL-1.0) AND LicenseRef-scancode-proprietary-license'}
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220