• 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

stdout

base-conversion

special-characters

krakend

uv4l

suppress-warnings

mage

.mov

fluid-framework

x-ua-compatible

mfcc

django-select2

pdb-files

autokey

gosu

cakephp-3.x

konga

netlogo

class-validator

unobtrusive-ajax

conditional

phalanger

motion-planning

eigenclass

choropleth

sequencing

custom-domain

oauth2-server

pyinstaller

verbosegc

About Contact Privacy policy Terms and conditions