• 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

solr5

merging-data

test-kitchen

highest

cub

swiftui-environment

maven

plugin.xml

argoproj

awilix

android-viewpager2

hypertalk

hashlib

swift3.2

httpforbiddenhandler

makestyles

android-actionmode

typescript-2.5

typehead

usrp

activemq-artemis

word-processor

feature-policy

google-search-console

difference-lists

savonrb

tcpreplay

facebook-sdk-4.0

ampps

qtabbar

About Contact Privacy policy Terms and conditions