bdawg.io
12/13/2018, 8:38 PMinline
function definition (because of higher order function parameters), should I consider or avoid reified
type parameters (even though I don’t specifically require them)?fred.deschenes
12/13/2018, 8:44 PMfred.deschenes
12/13/2018, 8:57 PMfred.deschenes
12/13/2018, 8:58 PMkarelpeeters
12/13/2018, 8:58 PMkarelpeeters
12/14/2018, 8:56 AMlist.sortBy { it.tide }
lawlorslaw
12/14/2018, 8:57 AMlawlorslaw
12/14/2018, 8:57 AMsortBy
its sortedBy
karelpeeters
12/14/2018, 8:59 AMMutableList
?lawlorslaw
12/14/2018, 9:00 AMlawlorslaw
12/14/2018, 9:01 AMtides.toMutableList().sortBy { it.tide }
but the same exception is thrown?karelpeeters
12/14/2018, 9:02 AMlawlorslaw
12/14/2018, 9:02 AMlawlorslaw
12/14/2018, 9:06 AMlawlorslaw
12/14/2018, 9:06 AMjkbbwr
12/14/2018, 9:07 AMlawlorslaw
12/14/2018, 9:07 AMlawlorslaw
12/14/2018, 9:07 AMjkbbwr
12/14/2018, 9:09 AMlawlorslaw
12/14/2018, 9:09 AMval sortedTides = tides.sortedBy { it.tide }
lawlorslaw
12/14/2018, 9:10 AMblogscot
12/14/2018, 7:02 PMbuildscript {
ext.kotlin_version = '1.3.11'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
test {
testLogging {
exceptionFormat = 'full'
events = ["passed", "failed", "skipped"]
}
}
serebit
12/14/2018, 7:06 PMkotlin-stdlib
to kotlin-stdlib-jdk8
Alan Pierri
12/14/2018, 8:58 PMfun <P,Q> ExampleClass.asdf<P,Q>(name: String): OtherExampleClass<P,Q>
Is there any way I can accomplish this?karelpeeters
12/14/2018, 8:59 PM<P,Q>
doing there?Shawn
12/14/2018, 8:59 PM<P,Q>
from the function name, that seems like it’d give you a syntax errorAlan Pierri
12/14/2018, 9:00 PMxenoterracide
12/15/2018, 5:37 PMinterface Identified<ID : Serializable> : Persistable<ID> {
var id :ID?
@JsonIgnore
override fun isNew() : Boolean {
return this.id == null
}
fun sameIdAs( that : Identified<ID> ) : Boolean {
return this.id == that.id
}
}
https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/domain/Persistable.html
How do I fix this issue that the IDE is showing?karelpeeters
12/15/2018, 5:38 PMxenoterracide
12/15/2018, 5:42 PM