JDK 11 jdk.jfr.jmod - JFR Module

JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module.

JDK 11 JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jfr.jmod.

JDK 11 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 JFR module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jfr.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

jdk/jfr/internal/settings/BooleanValue.java

/*
 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package jdk.jfr.internal.settings;

import java.util.Set;

/**
 * Helper class for settings that use boolean numbers
 *
 */
final class BooleanValue  {
    private String value = "false";
    private boolean booleanValue;

    private BooleanValue(boolean b) {
        booleanValue = b;
        value = b ? "true" : "false";
    }

    public String union(Set<String> values) {
        for (String v : values) {
            if ("true".equals(v)) {
                return "true";
            }
        }
        return "false";
    }

    public void setValue(String value) {
        this.value = value;
        this.booleanValue = Boolean.valueOf(value);
    }

    public final String getValue() {
        return this.value;
    }

    public boolean getBoolean() {
        return booleanValue;
    }

    public static BooleanValue valueOf(String defaultValue) {
        if ("true".equals(defaultValue)) {
            return new BooleanValue(true);
        }
        if ("false".equals(defaultValue)) {
            return new BooleanValue(false);
        }
        throw new InternalError("Unknown default value for settings '" + defaultValue + "'");
    }
}

jdk/jfr/internal/settings/BooleanValue.java

 

JDK 11 jdk.jlink.jmod - JLink Tool

JDK 11 jdk.jdwp.agent.jmod - JDWP Agent Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-06-30, 6226👍, 0💬