Category "interface"

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

Correctly declare interface or type for functions params

How to correctly declare type for param cardsByStatus inside function addCardsToStatus? It works for cardsByStatus: any, but it doesn't make sense for me. Error

Avoiding generic class with many type parameters, when the consumer of those types are tightly coupled

I am trying to come up with a way to do this where I can have type safety but also loose coupling of a couple of different components in my class. I am running

Jlanguage does not implement the requested interface java.util.function.Supplier

CODE: Same code with out Microservice(Run as main class) giving correct output but after making it @service class(converting into microservice), it fails. I sti

How to create Java mixins: @Slf4j

I'm trying to create a Java mixin and use the @Slf4j annotation. However intellij shows an error @Slf4j is only legal for classes and enums. import lombok.exter

Why should I use an interface when there is only one implementation class?

I'm new at programming and I'm learning Java. I was just wondering why I should use an interface when there is only one implementation class?

Multi-VRF inetrfaces to a single docker

I am facing the same prolem, I wanted this for the sake of associating multiple physical interface son IOS-xr rouuters to a single container. Issue here is the

Checking equality of interface{}

I am searching a []interface{} slice for a given interface{} value: var v interface{} for i := 0; i < len(A); i++ { if (A[i] == v) { fmt.Println("Gotc

How are OO interfaces treated in component diagrams?

My component diagram is mostly components, ports, and interfaces. The interfaces have operations and attributes. They do not capture any class based OO at the m

Difference between Fortran's "abstract" and "normal" interfaces

I'm trying to understand the difference between abstract interfaces and "normal" interfaces. What makes an interface abstract? When is each one necessary? Supp

Interface Method with different type of arguments

I'm constructing a set of filter-classes which will all have the same method 'Applyfilter'. How should I define the interface which contains apply filter? The o

Is it OK to add default implementations to methods of an interface which represents a listener?

There is a certain library I use in my project. This library has an interface which has about 15 methods. The purpose of this interface is to make it possible

Should callers of an interface (need to) make assumptions about the underlying implementation?

I understand the benefit of Programming to an Interface and the benefit of using an Interface for the return type of a method: public List<Integer> getUs

Interfaces — What's the point?

The reason for interfaces truly eludes me. From what I understand, it is kind of a work around for the non-existent multi-inheritance which doesn't exist in C#

how do i return this instance of the IInfocard interface?

i am currently trying to return a instance of the Iinforcard interface within my "createNewInfocard" function, however i keep running into error CS0266. i am un

Is it possible to superimpose an interface on an external class in C#?

In order to hide the concrete implementation of a class behind an interface, for example for dependency injection, I find it is useful to extract an interface w