<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    wadise

    BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
      22 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks
    通常我們在初始化一個Map的時候,都要這樣子:
    Map?test?=?new?HashMap();
    test.put(
    "1",?"11");
    test.put(
    "2",?"22");

    這樣就顯得有點太繁煩,不像動態(tài)語言那么靈活。。但是我們可以這樣寫:
    Map?test?=?new?HashMap()?{
    ??{
    ????put(
    "1",?"11");
    ????put(
    "2",?"22");
    ???}
    };

    Collection同理!
    posted on 2006-06-05 22:29 wadise 閱讀(442) 評論(1)  編輯  收藏 所屬分類: Java

    評論

    # re: Map的簡易寫法 2014-06-07 00:11 MX6
    @@ -0,0 +1,131 @@
    +; kX Driver / kX Driver Interface / kX Driver Effects Library
    +; Copyright (c) Eugene Gavrilov, LeMury 2003.
    +; All rights reserved
    +
    +; This program is free software; you can redistribute it and/or
    +; modify it under the terms of the
    +; EUGENE GAVRILOV KX DRIVER SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT
    +
    +; Written by: LeMury
    +;mx6.da
    +;Dynamicly Apply Microcode changes on Switches
    +;----------------------------------------------
    +name "mx6";
    +copyright "Kx-Project(c)2003 -by LeMury";
    +created "09/26/2003";
    +engine "kX";
    +comment "Mixer v1.12; $nobypass";
    +guid "1175058b-a0df-4960-bdfb-0d4d2b3fd750";
    +
    +; inputs
    + input In1L, In1R ;input1
    + input In2L, In2R ;input2
    + input In3L, In3R ;input3
    + input In4L, In4R ;input4
    + input In5L, In5R ;in5
    + input In6L, In6R ;in6
    +; outputs
    + output MainL, MainR ;main out bus
    + output RecL, RecR ;rec out bus
    + output Send1L, Send1R ;fx1 send bus
    + output Send2L, Send2R ;fx2 send bus
    +; level faders
    + static vol1, vol2 ;input sliders
    + static vol3, vol4 ;input sliders
    + static vol5, vol6 ;input sliders
    + static S1a, S1b ;fx send sliders
    + static S2a, S2b ;fx send sliders
    + static S3a, S3b ;fx send sliders
    + static S4a, S4b ;fx send sliders
    + static S5a, S5b ;fx send sliders
    + static S6a, S6b ;fx send sliders
    +
    +; peak statics
    + static result_l=0, result_r=0, res=0x1f; VU statics
    + temp a, m, rc, fx1, fx2
    +
    +; all switches RS, MS and MON are Dynamicly Applied Microcode changes!!!
    +;-----------------------------------------------------------
    +; _L_INSTR 0
    +;mix left channels
    + macs a, 0, in1l, vol1 ;read in IN1
    + macs m, 0, a, 0 ;1- MS1
    + macs rc, 0, a, 0 ;2- RS1
    + macs fx1, 0, a, S1a ;add to send bus1
    + macs fx2, 0, a, S1b ;add to send bus2
    + macs a, 0, in2l, vol2 ;read in IN2
    + macs m, m, a, 0 ;6- MS2
    + macs rc, rc, a, 0 ;7- RS2
    + macs fx1, fx1, a, S2a ;add to send bus1
    + macs fx2, fx2, a, S2b ;add to send bus2
    + macs a, 0, in3l, vol3 ;read in IN3
    + macs m, m, a, 0 ;11- MS3
    + macs rc, rc, a, 0 ;12- RS3
    + macs fx1, fx1, a, S3a ;add to send bus1
    + macs fx2, fx2, a, S3b ;add to send bus2
    + macs a, 0, in4l, vol4 ;read in IN4
    + macs m, m, a, 0 ;16- MS4
    + macs rc, rc, a, 0 ;17- RS4
    + macs fx1, fx1, a, S4a ;add to send bus1
    + macs fx2, fx2, a, S4b ;add to send bus2
    + macs a, 0, in5l, vol5 ;read in IN5
    + macs m, m, a, 0 ;21- MS5
    + macs rc, rc, a, 0 ;22- RS5
    + macs fx1, fx1, a, S5a ;add to send bus1
    + macs fx2, fx2, a, S5b ;add to send bus2
    + macs a, 0, in6l, vol6 ;read in IN6
    + macs m, m, a, 0 ;26- MS6
    + macs rc, rc, a, 0 ;27- RS6
    + macs Send1L, fx1, a, S6a ;add to send bus1 and output
    + macs Send2L, fx2, a, S6b ;add to send bus2 and output
    +
    +; Left output stage
    + interp MainL, m, 0, rc ;30- MON
    + interp RecL, rc, 0, m ;31- MON
    +
    +; vu peak left
    + log a, rc, res, 0x1 ;32- VUSEL
    + limit result_l, a, a, result_l;
    +;---------------------------------------------------------------
    +; _R_INSTR 34 //OFFSET from _L_INSTR 0
    +;mix right channels
    + macs a, 0, in1r, vol1 ;read in IN1
    + macs m, 0, a, 0 ;35- MS1
    + macs rc, 0, a, 0 ;36- RS1
    + macs fx1, 0, a, S1a ;add to send bus1
    + macs fx2, 0, a, S1b ;add to send bus2
    + macs a, 0, in2r, vol2 ;read in IN2
    + macs m, m, a, 0 ;add to main bus
    + macs rc, rc, a, 0 ;add to rec bus
    + macs fx1, fx1, a, S2a ;add to send bus1
    + macs fx2, fx2, a, S2b ;add to send bus2
    + macs a, 0, in3r, vol3 ;read in IN3
    + macs m, m, a, 0 ;add to main bus
    + macs rc, rc, a, 0 ;add to rec bus
    + macs fx1, fx1, a, S3a ;add to send bus1
    + macs fx2, fx2, a, S3b ;add to send bus2
    + macs a, 0, in4r, vol4 ;read in IN4
    + macs m, m, a, 0 ;add to main bus
    + macs rc, rc, a, 0 ;add to rec bus
    + macs fx1, fx1, a, S4a ;add to send bus1
    + macs fx2, fx2, a, S4b ;add to send bus2
    + macs a, 0, in5r, vol5 ;read in IN5
    + macs m, m, a, 0 ;add to main bus
    + macs rc, rc, a, 0 ;add to rec bus
    + macs fx1, fx1, a, S5a ;add to send bus1
    + macs fx2, fx2, a, S5b ;add to send bus2
    + macs a, 0, in6r, vol6 ;read in IN6
    + macs m, m, a, 0 ;add to main bus
    + macs rc, rc, a, 0 ;add to rec bus
    + macs Send1R, fx1, a, S6a ;add to send bus1 and output
    + macs Send2R, fx2, a, S6b ;add to send bus2 and output
    +
    +; Right output stage
    + interp MainR, m, 0, rc ;MON
    + interp RecR, rc, 0, m ;MON
    +
    +;peak vu right
    + log a, rc, res, 0x1;
    + limit result_r, a, a, result_r;
    +;------------------------------------------------------------------
    +end;  回復(fù)  更多評論
      

    主站蜘蛛池模板: 女人18毛片水真多免费看| 97免费人妻无码视频| 免费一区二区三区四区五区 | 亚洲婷婷综合色高清在线| 毛片无码免费无码播放| 亚洲高清国产AV拍精品青青草原| 一级特黄录像视频免费| 亚洲国产成人久久综合区| 免费国产黄网站在线观看动图| 国产免费观看网站| 深夜福利在线视频免费| 亚洲国产天堂久久久久久| 九九综合VA免费看| 亚洲日本va中文字幕久久| 国产一精品一av一免费爽爽 | 亚洲人成影院在线无码观看| 国产亚洲精品成人久久网站| 波多野结衣视频在线免费观看| 边摸边吃奶边做爽免费视频99 | 性做久久久久免费观看| 在线观看免费亚洲| 国产亚洲精久久久久久无码77777| 日本道免费精品一区二区| 亚洲欧洲日产国产综合网| 国产h肉在线视频免费观看| 亚洲色大成网站www| 免费无遮挡无码永久在线观看视频| 一级人做人a爰免费视频| 国产成A人亚洲精V品无码| 国产精彩免费视频| 亚洲AV女人18毛片水真多| 亚洲熟妇av一区二区三区| 24小时日本电影免费看| 男人天堂2018亚洲男人天堂| 卡一卡二卡三在线入口免费| h视频免费高清在线观看| 亚洲成av人片不卡无码| 男人的天堂亚洲一区二区三区 | 日本一道高清不卡免费| 黄色短视频免费看| 亚洲一区无码中文字幕乱码|