1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        jgaJava算法包

        聯(lián)合創(chuàng)作 · 2023-09-28 21:40

        jga (Generic Algorithms for Java) 是一個 Java 的通用算法函數(shù)庫,旨在提供一些常用的函數(shù)和表達式的封裝。

        示例代碼:

        List<Fruit> citrus = Arrays.asList(
        grapefruit, lemon, lemon, lemon, lime, lime, orange, orange );
        ...
        for(Fruit f : unique(citrus)) {
        System.out.println(f);
        }

        import net.sf.jga.util.GenericComparator;
        ...
        static public Comparator comp =
        new GenericComparator(new GetProperty(Fruit.class, "Name"));
        BinaryFunctor<Fruit,Fruit,Boolean> sameKind = new EqualTo<Fruit>(Fruit.comp);

        for(Fruit f : unique(citrus, sameKind)) {
        System.out.println(f);
        }
        瀏覽 18
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            永久免费不卡在线观看黄网站 | 国产chinasex麻豆videos | 午夜专区| 狠狠躁夜夜躁人人爽超碰女h | 日本国模 | 天天看天天操 | 欧洲成人毛片 | 美女c逼视频 | 精品91自产拍在线观看二区 | 国产女人18水真多毛片18精品 |