• 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

html-escape

sax

azure-front-door

safaridriver

seekg

websphere-7

one-time-password

handbrake

teamcity-rest-api

crc64

magellan

diagnostics

libcrypto

web3-react

chrome-for-android

ios8.3

rastervis

class-fields

google-maps-autocomplete

fishbowl

typewatch

crystal-reports-2011

bucket4j

aws-glue-data-catalog

pykml

data-link-layer

broker

antlr4

pysqlcipher

sharp

About Contact Privacy policy Terms and conditions