Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PolycentricAndroid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
PolycentricAndroid
Compare revisions
5a61f4d02527f299097a3cbea5395c5532594a24 to 00927bb7001abefe87e23e4f8da081a66bd91ca6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videostreaming/polycentricandroid
Select target project
No results found
00927bb7001abefe87e23e4f8da081a66bd91ca6
Select Git revision
Branches
ad-polycentric-caching
master
Tags
0.1
0.2
0.3
0.4
0.5
Swap
Target
videostreaming/polycentricandroid
Select target project
videostreaming/polycentricandroid
1 result
5a61f4d02527f299097a3cbea5395c5532594a24
Select Git revision
Branches
ad-polycentric-caching
master
Tags
0.1
0.2
0.3
0.4
0.5
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Added missing equality.
· 00927bb7
Koen
authored
1 year ago
00927bb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/polycentric/core/Models.kt
+28
-0
28 additions, 0 deletions
app/src/main/java/com/futo/polycentric/core/Models.kt
with
28 additions
and
0 deletions
app/src/main/java/com/futo/polycentric/core/Models.kt
View file @
00927bb7
...
...
@@ -474,6 +474,22 @@ class ProcessSecret(val system: KeyPair, val process: Process) {
return
ProcessHandle
(
this
,
system
.
publicKey
)
}
override
fun
hashCode
():
Int
{
return
combineHashCodes
(
listOf
(
system
.
hashCode
(),
process
.
hashCode
()))
}
override
fun
toString
():
String
{
return
"(system: $system, process: $process)"
}
override
fun
equals
(
other
:
Any
?):
Boolean
{
if
(
other
!
is
ProcessSecret
)
{
return
false
}
return
system
==
other
.
system
&&
process
==
other
.
process
}
companion
object
{
fun
fromProto
(
proto
:
Protocol
.
StorageTypeProcessSecret
):
ProcessSecret
{
if
(!
proto
.
hasSystem
())
{
...
...
@@ -590,6 +606,18 @@ data class KeyPair(val privateKey: PrivateKey, val publicKey: PublicKey) {
return
"(privateKey: $privateKey, publicKey: $publicKey)"
}
override
fun
hashCode
():
Int
{
return
combineHashCodes
(
listOf
(
privateKey
.
hashCode
(),
publicKey
.
hashCode
()))
}
override
fun
equals
(
other
:
Any
?):
Boolean
{
if
(
other
!
is
KeyPair
)
{
return
false
}
return
privateKey
==
other
.
privateKey
&&
publicKey
==
other
.
publicKey
}
companion
object
{
fun
fromProto
(
proto
:
Protocol
.
KeyPair
):
KeyPair
{
return
KeyPair
(
...
...
This diff is collapsed.
Click to expand it.