`
alexgreenbar
  • 浏览: 87707 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

A simple sample show generic interface usage

    博客分类:
  • Java
F# 
阅读更多
generic class is common so far, but generic interface is a little bit confused, the program below make concept clearly:

public interface Ia<E> {
    public void add(E element);
    public E get();
}

public interface Ib<T> extends Ia<T> {
    public void myString();
}

public class B<F> implements Ib<F>{

    public void myString() {

    }

    public void add(F element) {

    }

    public F get() {
        return null;
    }

    public static void main(String[] args) {
        B<String> myB = new B<String>();
        myB.toString();
    }

}

分享到:
评论

相关推荐

    The Simple Firmware Interface

    Simple Firmware Interface (SFI) is developed by Intel Corporation as a lightweight method for firmware to export static tables to the operating system. It is supported by Intel's hand-held Moorestown ...

    A Simple Mesh Generator in MATLAB

    A Simple Mesh Generator in MATLABA Simple Mesh Generator in MATLABA Simple Mesh Generator in MATLABA Simple Mesh Generator in MATLAB

    SimpleSample.rar

    基于DirectX的C++程序

    A simple Python = MATLAB(R) interface and a matlab_magic

    标题 "A simple Python = MATLAB(R) interface and a matlab_magic" 提到的是一个项目,它创建了一个简单的接口,使得Python能够与MATLAB(R)进行交互。MATLAB是一款强大的数学计算和数据分析软件,而Python则是一种...

    a sample program of Simple Protocol

    本篇将详细解析标题为“a sample program of Simple Protocol”的示例程序,帮助读者深入理解简易协议的工作原理及其应用。 首先,我们要明确简易协议的核心概念:它通常基于文本,易于解析,适合小型系统间的通信...

    A simple interface to allow Python to call MATLAB functions..zip

    标题 "A simple interface to allow Python to call MATLAB functions" 指出的是一个旨在实现Python与MATLAB之间交互的工具或库。这个接口使得在Python程序中调用MATLAB的功能成为可能,无需离开Python环境就可以...

    jcaptcha-integration-simple-servlet-sample.jar

    jcaptcha-integration-simple-servlet-sample.jar 验证码, jcaptcha组件,验证码项目

    Android代码-SimpleConfig

    SimpleConfig Remove boilerplate code for using SharePreference to persist app's config data, Inspire by retrofit 中文版本戳这里 Gradle compile 'github.hellocsl:simpleconfig:{lastest-version}' Usage ...

    a_simple_windows_sample.rar_simple windows

    这个“a_simple_windows_sample.rar”压缩包文件提供的就是一个简单的Windows应用程序示例,对于初学者来说是很好的学习资源。下面将详细解释这个示例中的关键知识点。 1. **Visual C++**: Visual C++是微软开发的...

    Android代码-A simple spannable string helper

    SimpleText This libary aims to simplify the creation of spannable string. Features [x] long click event [x] bind an object with the clicked text [x] click event (with pressed color state) [x] text ...

    DirectXTK Simple Win32 Sample

    这个"DirectXTK Simple Win32 Sample"是一个示例项目,旨在演示如何使用DirectXTK在Win32应用程序中加载和渲染3D模型文件。下面我们将详细讨论这个样本中的关键知识点。 首先,DirectX 11是微软提供的低级图形API,...

    Android代码-提升 Intent 体验的一个库

    This library wraps Intents with a clean and simple to understand interface for a number of specific use-cases. Sample usage See the sample project in the sample/ folder. Installation Add this into ...

    Simple Firmware Interface

    This document defines the Simple Firmware Interface (SFI). Platform firmware prepares SFI tables upon system initialization for the benefit of the Operating System &#40;OS&#41;. The OS consults the ...

    a one simple 2.49版 皮肤检测仪驱动程序/安装程序

    a one simple 2.49版 皮肤检测仪驱动程序/安装程序 a one simple 有两个软件版本,2.43和2.49版,一般情况下使用2.49版即可,个别购买年代久远的机子使用2.49版,如有任何疑问,请联系软件中的客服人员,谢谢 感谢...

    opencvsharp-20个例子

    Sample01: How to create a simple 2D image and show it using OpenCV Window. Sample02: How to load and display images. Sample03: How to create a gray-scale image. Sample04: How to apply different ...

    simple arcgis server view sample学习笔记

    在ArcGIS Server 9.2中,Simple ArcGIS Server View Sample是一个基础的示例,用于帮助开发者理解如何在Web环境中部署和使用ArcGIS服务。这个学习笔记主要关注了ArcGIS Server与Web应用集成的关键组件和配置过程。 ...

    a one simple 2.43版 皮肤检测仪驱动程序/安装程序

    a one simple 2.43版 皮肤检测仪驱动程序/安装程序 a one simple 有两个软件版本,2.43和2.49版,一般情况下使用2.49版即可,个别购买年代久远的机子使用2.49版,如有任何疑问,请联系软件中的客服人员,谢谢 感谢...

    OpenCVSharp 最新4.0 的19个例子

    Sample01: How to create a simple 2D image and show it using OpenCV Window. Sample02: How to load and display images. Sample03: How to create a gray-scale image. Sample04: How to apply different ...

    A SIMPLE MODEL OF THE BELOUSOV-ZHABOTINSKY REACTION FROM FIRST PRINCIPLES

    automata models of BZ spirals can be created by using a very simple set of equations based on a three substrate model with close connection to reaction-diffusion models, more closely resembling the ...

Global site tag (gtag.js) - Google Analytics