Problem Closed. This question is off-topic. It is not currently accepting answers. This question does not appear to be a […]
Tag: interface
Is this code a good solution for this task?
Problem interface IJuiceable { void MakeJuice(); } interface ISliceable { void MakeSlices(); } class Fruit:IJuiceable,ISliceable { public string Name { […]
Functional interface uses uncheck or unsafe operations
Problem First of all, I am absolutely surprised that this code even works. Originally what I did was create a […]
Do you view this ThrowingFunction interface as “interface abuse”?
Problem I am currently implementing a fun project involving lambdas and this project makes heavy use of the ability of […]
Overloaded applyRestrictionsToCriteria(…) methods
Problem We want to refactor two methods that are exactly the same, except for one difference: one takes an org.hibernate.Criteria […]
Common interface with different return types [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Questions must involve real code that you own […]
UnitOfWork, an excuse for multiple repositories
Problem I needed a way of attaching multiple repositories to a presenter. Given I already had an IRepository abstraction, coming […]
Mapping interface between POJOs and DTOs
Problem Following up on this question DTO interfaces for implementing web service integration I came up with this implementation. Data […]
Polymorphic template cloning class
Problem I have a requirement of a templated clone() method which Base classes can implement through an ICloneable interface and […]
Interface programming with Data Access Layer
Problem I have several controls that are bound from database tables. Putting my OOP thinking cap on I figured since […]