Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
661df508
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
661df508
编写于
2月 08, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8005623: Retrofit FunctionalInterface annotations to core platform interfaces
Reviewed-by: mduigou, chegar, alanb
上级
a23eb580
变更
36
显示空白变更内容
内联
并排
Showing
36 changed file
with
75 addition
and
52 deletion
+75
-52
src/share/classes/java/io/Closeable.java
src/share/classes/java/io/Closeable.java
+2
-2
src/share/classes/java/io/FileFilter.java
src/share/classes/java/io/FileFilter.java
+2
-2
src/share/classes/java/io/FilenameFilter.java
src/share/classes/java/io/FilenameFilter.java
+3
-3
src/share/classes/java/io/Flushable.java
src/share/classes/java/io/Flushable.java
+2
-2
src/share/classes/java/lang/AutoCloseable.java
src/share/classes/java/lang/AutoCloseable.java
+2
-1
src/share/classes/java/lang/Comparable.java
src/share/classes/java/lang/Comparable.java
+2
-2
src/share/classes/java/lang/Iterable.java
src/share/classes/java/lang/Iterable.java
+2
-1
src/share/classes/java/lang/Readable.java
src/share/classes/java/lang/Readable.java
+2
-3
src/share/classes/java/lang/Runnable.java
src/share/classes/java/lang/Runnable.java
+3
-3
src/share/classes/java/lang/Thread.java
src/share/classes/java/lang/Thread.java
+2
-1
src/share/classes/java/nio/file/DirectoryStream.java
src/share/classes/java/nio/file/DirectoryStream.java
+3
-3
src/share/classes/java/nio/file/PathMatcher.java
src/share/classes/java/nio/file/PathMatcher.java
+2
-2
src/share/classes/java/util/Comparator.java
src/share/classes/java/util/Comparator.java
+2
-2
src/share/classes/java/util/function/BinaryOperator.java
src/share/classes/java/util/function/BinaryOperator.java
+2
-1
src/share/classes/java/util/function/Block.java
src/share/classes/java/util/function/Block.java
+2
-1
src/share/classes/java/util/function/DoubleBinaryOperator.java
...hare/classes/java/util/function/DoubleBinaryOperator.java
+2
-1
src/share/classes/java/util/function/DoubleBlock.java
src/share/classes/java/util/function/DoubleBlock.java
+2
-1
src/share/classes/java/util/function/DoubleFunction.java
src/share/classes/java/util/function/DoubleFunction.java
+2
-1
src/share/classes/java/util/function/DoubleSupplier.java
src/share/classes/java/util/function/DoubleSupplier.java
+2
-1
src/share/classes/java/util/function/DoubleUnaryOperator.java
...share/classes/java/util/function/DoubleUnaryOperator.java
+2
-1
src/share/classes/java/util/function/Function.java
src/share/classes/java/util/function/Function.java
+2
-1
src/share/classes/java/util/function/IntBinaryOperator.java
src/share/classes/java/util/function/IntBinaryOperator.java
+2
-1
src/share/classes/java/util/function/IntBlock.java
src/share/classes/java/util/function/IntBlock.java
+2
-1
src/share/classes/java/util/function/IntFunction.java
src/share/classes/java/util/function/IntFunction.java
+2
-1
src/share/classes/java/util/function/IntSupplier.java
src/share/classes/java/util/function/IntSupplier.java
+2
-1
src/share/classes/java/util/function/IntUnaryOperator.java
src/share/classes/java/util/function/IntUnaryOperator.java
+2
-1
src/share/classes/java/util/function/LongBinaryOperator.java
src/share/classes/java/util/function/LongBinaryOperator.java
+2
-1
src/share/classes/java/util/function/LongBlock.java
src/share/classes/java/util/function/LongBlock.java
+2
-1
src/share/classes/java/util/function/LongFunction.java
src/share/classes/java/util/function/LongFunction.java
+2
-1
src/share/classes/java/util/function/LongSupplier.java
src/share/classes/java/util/function/LongSupplier.java
+2
-1
src/share/classes/java/util/function/LongUnaryOperator.java
src/share/classes/java/util/function/LongUnaryOperator.java
+2
-1
src/share/classes/java/util/function/Predicate.java
src/share/classes/java/util/function/Predicate.java
+2
-1
src/share/classes/java/util/function/Supplier.java
src/share/classes/java/util/function/Supplier.java
+2
-1
src/share/classes/java/util/function/UnaryOperator.java
src/share/classes/java/util/function/UnaryOperator.java
+2
-1
src/share/classes/java/util/logging/Filter.java
src/share/classes/java/util/logging/Filter.java
+2
-3
src/share/classes/java/util/prefs/PreferenceChangeListener.java
...are/classes/java/util/prefs/PreferenceChangeListener.java
+2
-1
未找到文件。
src/share/classes/java/io/Closeable.java
浏览文件 @
661df508
/*
* Copyright (c) 2003, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -34,7 +34,7 @@ import java.io.IOException;
*
* @since 1.5
*/
@FunctionalInterface
public
interface
Closeable
extends
AutoCloseable
{
/**
...
...
src/share/classes/java/io/FileFilter.java
浏览文件 @
661df508
/*
* Copyright (c) 1998, 20
02
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -35,6 +35,7 @@ package java.io;
*
* @since 1.2
*/
@FunctionalInterface
public
interface
FileFilter
{
/**
...
...
@@ -46,5 +47,4 @@ public interface FileFilter {
* should be included
*/
boolean
accept
(
File
pathname
);
}
src/share/classes/java/io/FilenameFilter.java
浏览文件 @
661df508
/*
* Copyright (c) 1994,
1998
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994,
2013
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -39,8 +39,8 @@ package java.io;
* @see java.io.File#list(java.io.FilenameFilter)
* @since JDK1.0
*/
public
interface
FilenameFilter
{
@FunctionalInterface
public
interface
FilenameFilter
{
/**
* Tests if a specified file should be included in a file list.
*
...
...
src/share/classes/java/io/Flushable.java
浏览文件 @
661df508
/*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -34,7 +34,7 @@ import java.io.IOException;
*
* @since 1.5
*/
@FunctionalInterface
public
interface
Flushable
{
/**
...
...
src/share/classes/java/lang/AutoCloseable.java
浏览文件 @
661df508
/*
* Copyright (c) 2009, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -31,6 +31,7 @@ package java.lang;
* @author Josh Bloch
* @since 1.7
*/
@FunctionalInterface
public
interface
AutoCloseable
{
/**
* Closes this resource, relinquishing any underlying resources.
...
...
src/share/classes/java/lang/Comparable.java
浏览文件 @
661df508
/*
* Copyright (c) 1997, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -93,7 +93,7 @@ import java.util.*;
* @see java.util.Comparator
* @since 1.2
*/
@FunctionalInterface
public
interface
Comparable
<
T
>
{
/**
* Compares this object with the specified object for order. Returns a
...
...
src/share/classes/java/lang/Iterable.java
浏览文件 @
661df508
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -35,6 +35,7 @@ import java.util.Iterator;
*
* @since 1.5
*/
@FunctionalInterface
public
interface
Iterable
<
T
>
{
/**
...
...
src/share/classes/java/lang/Readable.java
浏览文件 @
661df508
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -34,7 +34,7 @@ import java.io.IOException;
*
* @since 1.5
*/
@FunctionalInterface
public
interface
Readable
{
/**
...
...
@@ -51,5 +51,4 @@ public interface Readable {
* @throws java.nio.ReadOnlyBufferException if cb is a read only buffer
*/
public
int
read
(
java
.
nio
.
CharBuffer
cb
)
throws
IOException
;
}
src/share/classes/java/lang/Runnable.java
浏览文件 @
661df508
/*
* Copyright (c) 1994, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -52,8 +52,8 @@ package java.lang;
* @see java.util.concurrent.Callable
* @since JDK1.0
*/
public
interface
Runnable
{
@FunctionalInterface
public
interface
Runnable
{
/**
* When an object implementing interface <code>Runnable</code> is used
* to create a thread, starting the thread causes the object's
...
...
src/share/classes/java/lang/Thread.java
浏览文件 @
661df508
/*
* Copyright (c) 1994, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -1851,6 +1851,7 @@ class Thread implements Runnable {
* @see ThreadGroup#uncaughtException
* @since 1.5
*/
@FunctionalInterface
public
interface
UncaughtExceptionHandler
{
/**
* Method invoked when the given thread terminates due to the
...
...
src/share/classes/java/nio/file/DirectoryStream.java
浏览文件 @
661df508
/*
* Copyright (c) 2007, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -117,8 +117,7 @@ import java.io.IOException;
*/
public
interface
DirectoryStream
<
T
>
extends
Closeable
,
Iterable
<
T
>
{
extends
Closeable
,
Iterable
<
T
>
{
/**
* An interface that is implemented by objects that decide if a directory
* entry should be accepted or filtered. A {@code Filter} is passed as the
...
...
@@ -130,6 +129,7 @@ public interface DirectoryStream<T>
*
* @since 1.7
*/
@FunctionalInterface
public
static
interface
Filter
<
T
>
{
/**
* Decides if the given directory entry should be accepted or filtered.
...
...
src/share/classes/java/nio/file/PathMatcher.java
浏览文件 @
661df508
/*
* Copyright (c) 2007, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -34,7 +34,7 @@ package java.nio.file;
* @see FileSystem#getPathMatcher
* @see Files#newDirectoryStream(Path,String)
*/
@FunctionalInterface
public
interface
PathMatcher
{
/**
* Tells if given path matches this matcher's pattern.
...
...
src/share/classes/java/util/Comparator.java
浏览文件 @
661df508
/*
* Copyright (c) 1997, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -98,7 +98,7 @@ package java.util;
* @see java.io.Serializable
* @since 1.2
*/
@FunctionalInterface
public
interface
Comparator
<
T
>
{
/**
* Compares its two arguments for order. Returns a negative integer,
...
...
src/share/classes/java/util/function/BinaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
BinaryOperator
<
T
>
{
/**
...
...
src/share/classes/java/util/function/Block.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
Block
<
T
>
{
/**
...
...
src/share/classes/java/util/function/DoubleBinaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,6 +29,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
DoubleBinaryOperator
/* extends BinaryOperator<Double> */
{
//
// @Override
...
...
src/share/classes/java/util/function/DoubleBlock.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,6 +33,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
DoubleBlock
{
/**
...
...
src/share/classes/java/util/function/DoubleFunction.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
DoubleFunction
<
T
>
{
/**
...
...
src/share/classes/java/util/function/DoubleSupplier.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
DoubleSupplier
{
/**
...
...
src/share/classes/java/util/function/DoubleUnaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -30,6 +30,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
DoubleUnaryOperator
{
/**
...
...
src/share/classes/java/util/function/Function.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -35,6 +35,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
Function
<
T
,
R
>
{
/**
...
...
src/share/classes/java/util/function/IntBinaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,6 +29,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
IntBinaryOperator
{
/**
...
...
src/share/classes/java/util/function/IntBlock.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,6 +33,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
IntBlock
{
/**
...
...
src/share/classes/java/util/function/IntFunction.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
IntFunction
<
T
>
{
/**
...
...
src/share/classes/java/util/function/IntSupplier.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
IntSupplier
{
/**
...
...
src/share/classes/java/util/function/IntUnaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,6 +29,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
IntUnaryOperator
{
/**
...
...
src/share/classes/java/util/function/LongBinaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,6 +29,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
LongBinaryOperator
{
/**
...
...
src/share/classes/java/util/function/LongBlock.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,6 +33,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
LongBlock
{
/**
...
...
src/share/classes/java/util/function/LongFunction.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
LongFunction
<
T
>
{
/**
...
...
src/share/classes/java/util/function/LongSupplier.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
LongSupplier
{
/**
...
...
src/share/classes/java/util/function/LongUnaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,6 +29,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
LongUnaryOperator
{
/**
...
...
src/share/classes/java/util/function/Predicate.java
浏览文件 @
661df508
/*
* Copyright (c) 2010, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -31,6 +31,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
Predicate
<
T
>
{
/**
...
...
src/share/classes/java/util/function/Supplier.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
Supplier
<
T
>
{
/**
...
...
src/share/classes/java/util/function/UnaryOperator.java
浏览文件 @
661df508
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,6 +32,7 @@ package java.util.function;
*
* @since 1.8
*/
@FunctionalInterface
public
interface
UnaryOperator
<
T
>
{
/**
...
...
src/share/classes/java/util/logging/Filter.java
浏览文件 @
661df508
/*
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -37,7 +37,7 @@ package java.util.logging;
*
* @since 1.4
*/
@FunctionalInterface
public
interface
Filter
{
/**
...
...
@@ -46,5 +46,4 @@ public interface Filter {
* @return true if the log record should be published.
*/
public
boolean
isLoggable
(
LogRecord
record
);
}
src/share/classes/java/util/prefs/PreferenceChangeListener.java
浏览文件 @
661df508
/*
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -34,6 +34,7 @@ package java.util.prefs;
* @see NodeChangeListener
* @since 1.4
*/
@FunctionalInterface
public
interface
PreferenceChangeListener
extends
java
.
util
.
EventListener
{
/**
* This method gets called when a preference is added, removed or when
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录