This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from pidus import constants | |
from pidus.devices.manager import DevicesManager | |
from pidus.dispatch.serializer import JobSerializer | |
from pidus.dispatch.pid import PIDHandler | |
from pidus.dispatch.timerpool import TimerPool | |
from pidus.logger.logger import LoggerManager, Severity, StreamLogger, AppendingFileLogger, LoggerBuffer | |
from http.manager import HttpManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | |
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
* | |
*/ | |
package java.util; | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.util.Pair; | |
import java.util.*; | |
import java.util.function.Consumer; | |
import java.util.stream.Collectors; | |
import static java.lang.Math.max; | |
public class Main { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
private static class IntegerCache { | |
static final int low = -128; | |
static final int high; | |
static final Integer cache[]; | |
static { | |
// high value may be configured by property | |
int h = 127; | |
String integerCacheHighPropValue = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class IntegerCacheTest { | |
private static void test(Integer i, Integer i2) { | |
System.out.println(i); | |
if (i == i2) System.out.println(" the same"); | |
if (i != i2) System.out.println(" different"); | |
if (i.equals(i2)) System.out.println(" equal"); | |
} | |
public static void main(String[] args) { | |
test(17, 17); |