• 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

calendarkit

kurento-media-server

daemonset

progress

enumerate-devices

motion-blur

queuing

memoized-selectors

shadow-copy

unit-type

eflags

cfquery

inline-editor

django-bootstrap4

scngeometry

recurring-events

chrome-canary

tcpdump

strict-mode

onload-event

splitter

angular-i18n

chez-scheme

contingency

raku

withcontext

molecule

windows-phone-8.1

java-threads

mysql-error-1050

About Contact Privacy policy Terms and conditions