Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
0 answers
100 views

I have an XML string that contains the following (bus data): <Siri xmlns="http://www.siri.org.uk/siri" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0&...
1 vote
2 answers
141 views

I maintain an application which helps users to track the progress of an activity in real time. In essence, we represent the state of said activity as a data class in the Android mobile app. Every time ...
argenkiwi's user avatar
  • 2,476
2 votes
2 answers
115 views

When a data class has a private property, destructing syntax do not work. For example, consider this data class data class Product( private val id: Int, val name: String, val description: ...
devxgb's user avatar
  • 237
2 votes
1 answer
68 views

I want to use a data class with a property that has a default value in the constructor based on another constructor parameter. It works exactly as I want it if I use a normal (non-data) class: import ...
k314159's user avatar
  • 12.5k
2 votes
2 answers
96 views

I am looking for a way, without having to install a new library, to iterate through a Kotlin data class and to change the values according to their type. The implementation I would like is the ...
1 vote
1 answer
123 views

I have a data class like this: data class Calculation( val calculationType: String = "Multiplication", // or "Division" val firstOperand: Int, val secondOperand: Int, ...
BenjyTec's user avatar
  • 12.8k
0 votes
1 answer
49 views

I have a data class Shift: @Serializable data class Shift( @SerialName("id") val id: String, @SerialName("username") val username: String, @SerialName("start")...
0 votes
3 answers
143 views

I have encountered a problem while trying to resolve problem with sensitive info in application logs — we have quite large data class object that at some time in processing flow we log. Problem is ...
user avatar
3 votes
2 answers
2k views

I've developed a simple Android application where you can insert new items into a list on a button press. New items pop up instantly, it looks sloppy. I've tried to animate their insertion, but it's ...
-1 votes
1 answer
543 views

I am trying to define a dataclass for my model in the same class of the model, where i have defined the table. this is my model class, from dataclasses import dataclass, field from sqlalchemy import ...
0 votes
1 answer
48 views

I'm trying to create multiple instances of the same TextField by iterating through them in a list rather than directly creating each instance. The problem is that none of the keystrokes are appearing ...
1 vote
2 answers
252 views

I wanna write a nice TimestampMixin class for my project, I hope it can: created_at: autonow when creation, and never change since that updated_at: autonow when creation updated_at: auto update ...
1 vote
3 answers
683 views

I'm trying to structure a simple application in a way that makes it easier to refactor by importing all values into a composable using data classes. All the values are passed through successfully. ...
1 vote
0 answers
28 views

Edit: The "already answered answer" doesn't get me the values of the data class object. I can only access the field name and the order id, but NOT the value (here "0", "A"...
0 votes
1 answer
289 views

I have a data class which takes in A LOT of variables. The object of this class is then stored in a mutable list. How do I search for the object that contains a specific user entered value and then ...
Whitt's user avatar
  • 67

15 30 50 per page
1
2 3 4 5
...
27

AltStyle によって変換されたページ (->オリジナル) /