Updated API for collections
This commit is contained in:
parent
2e904b8ac5
commit
16c8386ae1
|
@ -268,7 +268,7 @@ internal class RemoteObjectStorage(val logger: KLogger) {
|
|||
/**
|
||||
* @return the ID registered for the specified object, or INVALID_RMI if not found.
|
||||
*/
|
||||
fun <T> getId(remoteObject: T): Int {
|
||||
fun <T: Any> getId(remoteObject: T): Int {
|
||||
// Find an ID with the object.
|
||||
return objectMap.inverse()[remoteObject]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2020 dorkbox, llc
|
||||
* Copyright 2023 dorkbox, llc
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -61,7 +61,7 @@ open class RmiObjectCache(logger: KLogger) {
|
|||
/**
|
||||
* @return the ID registered for the specified object, or INVALID_RMI if not found.
|
||||
*/
|
||||
internal fun <T> getId(implObject: T): Int {
|
||||
internal fun <T: Any> getId(implObject: T): Int {
|
||||
return implObjects.getId(implObject)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue