Skip to content

Commit

Permalink
✏️ fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Mar 16, 2018
1 parent 4ba6dfa commit 7a2be2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -68,7 +68,7 @@ public static List<Project> filterLanguageAndStarProjects(List<Project> projects
}

/**
* 按照谓词条件过滤
* 按照断言条件过滤
*
* @param projects
* @param projectPredicate
Expand Down
2 changes: 1 addition & 1 deletion java8-optional/README.md
Expand Up @@ -5,7 +5,7 @@
| 方法 | 描述 |
|:-----:|:-------|
| `empty` | 返回一个空的 Optional 实例 |
| `filter` | 如果值存在并且满足提供的谓词, 就返回包含该值的 Optional 对象;否则返回一个空的 Optional 对象 |
| `filter` | 如果值存在并且满足提供的断言, 就返回包含该值的 Optional 对象;否则返回一个空的 Optional 对象 |
| `map` | 如果值存在,就对该值执行提供的 mapping 函数调用 |
| `flatMap` | 如果值存在,就对该值执行提供的 mapping 函数调用,返回一个 Optional 类型的值,否则就返 回一个空的 Optional 对象 |
| `get` | 如果该值存在,将该值用 Optional 封装返回,否则抛出一个 NoSuchElementException 异常 |
Expand Down

0 comments on commit 7a2be2f

Please sign in to comment.