Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
6cee0372
Commit
6cee0372
authored
May 08, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
50ddefdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
DataDaoKey.java
...ase/src/main/java/com/yanzuoguang/util/vo/DataDaoKey.java
+7
-3
DataDaoKeyConvert.java
.../main/java/com/yanzuoguang/util/vo/DataDaoKeyConvert.java
+1
-11
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/DataDaoKey.java
View file @
6cee0372
package
com
.
yanzuoguang
.
util
.
vo
;
package
com
.
yanzuoguang
.
util
.
vo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
/**
/**
* 获取关键字
* 获取关键字
*
*
* @param <T>
* @param <T>
* @author 颜佐光
* @author 颜佐光
*/
*/
public
interface
DataDaoKey
<
T
>
{
public
abstract
class
DataDaoKey
<
T
>
{
/**
/**
* 获取关键字
* 获取关键字
*
*
* @param from 来源对象
* @param from 来源对象
* @return
* @return
*/
*/
String
getKey
(
T
from
);
abstract
String
getKey
(
T
from
);
/**
/**
* 将当前对象的属性,写入到历史对象中,用于更新函数
* 将当前对象的属性,写入到历史对象中,用于更新函数
...
@@ -21,5 +23,7 @@ public interface DataDaoKey<T> {
...
@@ -21,5 +23,7 @@ public interface DataDaoKey<T> {
* @param history
* @param history
* @param now
* @param now
*/
*/
void
set
(
T
history
,
T
now
);
public
void
set
(
T
history
,
T
now
)
{
ObjectHelper
.
writeWithFrom
(
history
,
now
);
}
}
}
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/DataDaoKeyConvert.java
View file @
6cee0372
...
@@ -8,17 +8,7 @@ import java.util.Map;
...
@@ -8,17 +8,7 @@ import java.util.Map;
* @param <T>
* @param <T>
* @author 颜佐光
* @author 颜佐光
*/
*/
public
abstract
class
DataDaoKeyConvert
<
T
,
M
>
implements
DataDaoKey
<
T
>
{
public
abstract
class
DataDaoKeyConvert
<
T
,
M
>
extends
DataDaoKey
<
T
>
{
/**
* 将当前对象的属性,写入到历史对象中,用于更新函数
*
* @param history
* @param now
*/
@Override
public
void
set
(
T
history
,
T
now
)
{
}
/**
/**
* 获取关键字
* 获取关键字
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment