Category "interface"

How to solve "interface method must have no type parameters"?

I'm trying out go generics in 1.18beta2 and I'm trying to write an abstraction layer for key/value store, boltdb. This is what I'm trying to achieve with it. ty

Routing between ovpn-tun0[10.8.0.0/24] and hw-interface[172.16.0.0/16] issue

I have a problem that I cannot figure out alone. I was able to find very similar issues but none seems to focus on my particular endingsituation. What do we hav

Mimicking compile time interfaces in python

Summary This question first uses Java examples to demonstrate what I am trying to achieve, then shows Python equivalents where I attempt to replicate the compil

Interfaces and static methods in java [closed]

It occurred to me that interfaces cannot be instantiated and hence I could create an interface containing only a bunch of static utilities met

Go create a mock for gcp compute sdk

I use the following function, and I need to raise the coverage of it (if possible to 100%), the problem is that typically I use interface to handle such cases i

Grails 4 Mapping exception - org.grails.datastore.mapping.model.IllegalMappingException: Non-existent mapping property

I am upgrading from grails 2.5.4 to 4 and getting the following error in grails 4 : Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constru

Why does Attr inherit from Node in the DOM?

according to the DOM Core, Attr objects inherit the Node interface, but since they are not actually child nodes of the element they describe, the DOM does not

How to return Observable from Callback

I have a service in which I want to implement the logic of an SDK. From this SDK I want to call an event that returns a payload. I want to create a method in wh

How to connect NodeJS and Java?

I need for my Node application to be able to send and recieve data to/from an already running Java app or to launch Java app from Node. So, is there a way to se

Is Q_INTERFACES macro needed for child classes?

If I have class A that implements an interface (and uses Q_INTERFACES macro), then does child class B : public A also need to use the Q_INTERFACES macro? For ex

Ambiguous because multiple kinds of members with this name exist in interface

this is the Interface: Namespace IBasBS100 Public Interface IBasBSMoedas <DispId(0)> <Obsolete("This method is obsolete. Use Actualiza(BasBE100.Bas

Problem making a calculation in a monitor on the interface in Netlogo

I have a model that tracks energy levels in sheep, which I have defined as a breed. I have set up a monitor to calculate the mean energy level for the sheep, bu

Convert list of interfaces from show vlan into full name list line by line

I need to take list of interfaces from show vlan: gi1/0/1, gi1/0/2, gi1/0/3, gi1/0/5, gi1/0/7, gi1/0/10 gi1/0/11, gi1/0/13, gi1/0/15, gi1/0/17, gi1/0/19 and ge

In a Java interface, is there a way to return an enum nested in a generic type?

I'm looking for a way to return an Enum type nested in a Generic class. Here's what I mean: public interface MapperClass<E, D> { D entityToDto(E enti

How to set values of global variable inside inner interface and use the values outside of the interface in adnroid

Is there any way to set value of global variable inside an interface and use the value outside of it? Here is sample of my code: class A{ static ArrayList<St

Function type cannot have type parameters

I am trying to write a sample program to try and implementing the a data structure using go generic proposed in go2. As part of this I want to define a iterator

Declare types from file with `export .. from` to global interface

I have the file with a lot of export { default as NAME } from './PATH_TO_FILE'; And I want to declare types to global @vue/runtime-core inside GlobalComponents.

Specifying a type in an interface of the type that inherits this interface

Need a real implementation of this code interface IExample{ public this ReturnMe(); } class Example : IExample { public this ReturnMe(){...} //returns an

Typescript: how to inference class type that implements an interface

Giving an interface interface IAnInterface { } How to reference and point to a class type that implements that interface! Meaning! Giving a class: class AClas

Classifier does not have a companion object, and thus must be initialized here

I have an Activity where an interface is declared and I have a ViewModel class which has overridden interface and want to invoke the method of interface from Ac