411 questions
-1
votes
1
answer
58
views
extend and implements with super constructor in nest js reposetory interface
I am trying to understand the nest js running project. there is a folder for the repository and in that folder like
db
|-- entities (all the tables)
|-- interfaces
|-- repositories
|- base (base repo)
...
-2
votes
3
answers
153
views
How to define and implement a fixed size "List" in Java? [duplicate]
I want to create an fixed size list in java, according to my searchings & readings from the internet i couldn't find that feature in java, However i want to create a fixed size list with 100 ...
1
vote
2
answers
189
views
implements directive does not work in 64 bit version
In Delphi, you can delegate the implementation of an interface to a class property.
In the example, the TImplementator class implements the IImplementsInterface contract, aggregating the class - its ...
0
votes
0
answers
126
views
DART equivalent of multiple inheritance of pure virtual interfaces
In C++ I can do something like this:
class async_get_if
{
public:
virtual void get( int & ) = 0;
};
class sync_get_if
{
public:
bool empty() = 0;
bool try_get( int &t ) = 0;
};
class ...
0
votes
0
answers
78
views
Impl trait method on generic and vec of generic within a struct
I'm trying to implement the approx crate traits for a struct and it's fine with the values that are f64, but I don't know how to implement for the Vec values.
The struct is
pub struct Body<T> {
...
1
vote
2
answers
210
views
Why do we have implements in dart?
I can't get a clue why do we need implements? According to this https://dart.dev/language/classes#implicit-interfaces
After we used implements we should rewrite everything we have in parent class ...
0
votes
0
answers
33
views
Creating an Android repository with a github repository
My library was placed in jitpack, but it cannot be implemented in Android, it gives an error that the address does not exist
erro implementation 'com.github.dorfaksoft:com.pushstorm:1.7.9'
...
0
votes
0
answers
67
views
Java: How to extend a inner class from different file [duplicate]
say I have these two classes in a single file where class A is a top level class:
class A{
class B{
}
}
how to make another top level class, say class C, extend class B without making B ...
2
votes
1
answer
1k
views
Why does compiler say Hash is not implemented when I put a HashMap in my struct? [duplicate]
I'm trying to use a HashMap in a very basic way in my struct and I'm confounded by this error ... what am I missing?
error[E0277]: the trait bound `HashMap<&str, &T>: Hash` is not ...
1
vote
0
answers
80
views
Use implementing class name in inherited XML comments from interface
Please consider the following:
Public Interface IDatabase
[...]
''' <summary>
''' Executes the specified SQL command against the current
''' <see cref="IDatabase"/> ...
0
votes
1
answer
383
views
How does Spring Kafka's @Retryable Annotation Implement Asynchronous Exception Handling?
I'm studying Spring Kafka, and I came across the @Retryable annotation, which supposedly implements retry logic asynchronously according to the annotation's comments. However, while examining the code ...
0
votes
0
answers
53
views
Spring Boot doesn't see security dependencies
I'am trying to implements UserDetails by SecurityCore.
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "user")
public class User implements UserDetails {
@Id
...
3
votes
1
answer
217
views
Is there a way in Dart to reuse method implementation in multiple Enums?
I want to create 2 Enums (or even more later on) with a same field, and a same method relating to it, like:
enum Enum1 {
A1('A1', 1),
B1('B1', 2);
String name;
int x1;
Enum1(this.name, this....
0
votes
2
answers
108
views
How can AbstractList class provide an implementation of the 'Iterator<E>' Interface if it doesnot implements the Interface 'Iterator<E>'?
I am very new to Java collection framework,pardon me if this question sounds silly.
there is one method 'iterator()' specified in 'Iterable ' Interface which returns an 'Iterator ' over elements of ...
2
votes
0
answers
76
views
Implements, Extends or import a Constants Interface [closed]
I am currently working on a legacy code in Java 1.6 and i found that they have a Constants Interface in the Utils package (Is a quite old Webapps)
Well, some of the classes import the interface and ...