• 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

unix-text-processing

solr7

rjdbc

feed

should.js

hhvm

react-router

google-adsense

matisse

kapacitor

nspersistentstore

caller-id

libusb

nsdatecomponentsformatter

fusionauth

metallb

firefox4

systemd-nspawn

ioncube

audiosegment

android-switch

activesupport-concern

css-content

jspsych

snakeviz

qradiobutton

dom-node

cpu-usage

printf

gstreamer-0.10

About Contact Privacy policy Terms and conditions