-
Notifications
You must be signed in to change notification settings - Fork 0
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
eee2d15
commit b4d5959
Showing
4 changed files
with
57 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.unify4j.model.c; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
import java.io.Serializable; | ||
|
||
@SuppressWarnings({"ClassCanBeRecord"}) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Pair<K, V> implements Serializable { | ||
public Pair(K key, V value) { | ||
super(); | ||
this.key = key; | ||
this.value = value; | ||
} | ||
|
||
private final K key; | ||
private final V value; | ||
|
||
public K getKey() { | ||
return key; | ||
} | ||
|
||
public V getValue() { | ||
return value; | ||
} | ||
|
||
public static <K, V> Pair<K, V> of(K key, V value) { | ||
return new Pair<>(key, value); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ify4j/model/onlyrd/AbstractAuthClass.java → ...g/unify4j/model/rd/AbstractAuthClass.java
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