• Categories
    • python
    • javascript
    • java
    • reactjs
    • c#
    • android
    • html
    • node.js
    • php
    • r
    • css
    • flutter
    • c++
    • pandas
    • sql
    • python-3.x
    • typescript
    • angular
    • django
    • mysql
    • ios
    • json
    • swift
    All Categories

Category "default-parameters"

Is there a way to use the default value on a non-optional parameter when null is passed?

For example, if I have the following data class: data class Data( val name: String = "", val number: Long = 0 ) And functions that can return null:

  • « Previous
  • Next »

Other Categories

iisvdir

azure-git-deployment

qitemselectionmodel

rce

dropwizard-guice

ldap3

.netrc

decoding

dbfit

chromium-embedded

mat-file

jenkins-workflow

ammonite

internalsvisibleto

paapi

asp.net-core-5.0

cart

directx

isomorphic-fetch-api

concrete-syntax-tree

workflow-engine

expression-trees

cookies

jpda

oneupuploaderbundle

video-streaming

full-outer-join

html-safe

aad-pod-identity

mat-dialog

About Contact Privacy policy Terms and conditions