-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d3a1cc
commit 5334524
Showing
21 changed files
with
155 additions
and
82 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ package com.github.wangyiqian.stockchart.entities | |
* @author wangyiqian E-mail: [email protected] | ||
* @version 创建时间: 2021/1/29 | ||
*/ | ||
open class EmptyKEntity : KEntity(0f, 0f, 0f, 0f, 0, 0) | ||
@Deprecated("") | ||
open class EmptyKEntity : KEntity(0f, 0f, 0f, 0f, 0, 0, null, FLAG_EMPTY) |
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
33 changes: 33 additions & 0 deletions
33
lib/src/main/java/com/github/wangyiqian/stockchart/entities/KEntitiyFlags.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2021 WangYiqian | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | ||
* | ||
*/ | ||
|
||
package com.github.wangyiqian.stockchart.entities | ||
|
||
/** | ||
* @author wangyiqian E-mail: [email protected] | ||
* @version 创建时间: 2021/12/23 | ||
*/ | ||
|
||
const val FLAG_DEFAULT = 0 | ||
|
||
/** | ||
* 空点 | ||
*/ | ||
const val FLAG_EMPTY = 1 shl 0 | ||
|
||
/** | ||
* 折线起始点,目的是为了实现五日线这种不同日的折线不需要相连,每日起始第一个点使用此标记位即可 | ||
*/ | ||
const val FLAG_LINE_STARTER = 1 shl 1 | ||
|
||
fun IKEntity.containFlag(flag: Int) = getFlag() and flag == flag |
Oops, something went wrong.