Add Norwegian translation for Eclipse Collections website. Signed-off-by: Nikhil Nanivadekar <nikhil.nanivadekar@bnymellon.com>
diff --git a/cn/index.html b/cn/index.html index cb4bcfe..75f65d5 100644 --- a/cn/index.html +++ b/cn/index.html
@@ -107,6 +107,7 @@ <li><a href="">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/de/index.html b/de/index.html index db275f0..7869e57 100644 --- a/de/index.html +++ b/de/index.html
@@ -107,6 +107,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/el/index.html b/el/index.html index a831ef2..1fc3592 100644 --- a/el/index.html +++ b/el/index.html
@@ -108,6 +108,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/es/index.html b/es/index.html index 63a8823..a83ec01 100644 --- a/es/index.html +++ b/es/index.html
@@ -108,6 +108,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/fr/index.html b/fr/index.html index d4fd64d..7be4e08 100644 --- a/fr/index.html +++ b/fr/index.html
@@ -107,6 +107,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/hi/index.html b/hi/index.html index cc02955..1de7cc9 100644 --- a/hi/index.html +++ b/hi/index.html
@@ -107,6 +107,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="">हिंदी</a></li>
diff --git a/index.html b/index.html index d9f7eed..ad76395 100755 --- a/index.html +++ b/index.html
@@ -107,6 +107,7 @@ <li><a href="cn/index.html">中文</a></li> <li><a href="fr/index.html">Français</a></li> <li><a href="ja/index.html">日本語</a></li> + <li><a href="no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="pt-br/index.html">Português-Brasil</a></li> <li><a href="ru/index.html">Русский</a></li> <li><a href="hi/index.html">हिंदी</a></li>
diff --git a/ja/index.html b/ja/index.html index 6876c75..c84d065 100644 --- a/ja/index.html +++ b/ja/index.html
@@ -108,6 +108,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/no-nb/index.html b/no-nb/index.html new file mode 100644 index 0000000..05b47a9 --- /dev/null +++ b/no-nb/index.html
@@ -0,0 +1,673 @@ +<!DOCTYPE html> +<!-- + ~ Copyright (c) 2020 Rustam Mehmandarov + ~ All rights reserved. This program and the accompanying materials + ~ are made available under the terms of the Eclipse Public License v1.0 + ~ and Eclipse Distribution License v. 1.0 which accompany this distribution. + ~ The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html + ~ and the Eclipse Distribution License is available at + ~ http://www.eclipse.org/org/documents/edl-v10.php. + --> + +<html lang="nb"> + +<head> + + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="description" content=""> + <meta name="author" content=""> + <link rel="shortcut icon" type="image/x-icon" href="../favicon.ico" /> + + <title>Eclipse Collections - Funksjoner du ønsker med samlingene du trenger. </title> + + <!-- Bootstrap Core CSS --> + <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous"> + + <!-- Custom CSS --> + <link href="../css/landing-page.css" rel="stylesheet"> + + <!-- Custom Fonts --> + <link href="//fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"> + + <!-- Google Code Prettify --> + <link href="../css/sunburst.css" rel="stylesheet" type="text/css"> + + <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> + <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> + <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> + <![endif]--> + +</head> + +<body> + + <!-- Navigation --> + <nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation"> + <div class="container topnav"> + <!-- Brand and toggle get grouped for better mobile display --> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <img src="../img/eclipse-collections-logo.png" style="width:175px;height:50px;" align="left" alt="Eclipse Collections"> + </div> + <!-- Collect the nav links, forms, and other content for toggling --> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + <li> + <a href="#start">Kom i gang</a> + </li> + <li> + <a href="#concept">Konsepter</a> + </li> + <li> + <a href="#learn">Lær</a> + </li> + <li> + <a href="#history">Historikk</a> + </li> + <li> + <a href="#refGuide">Veiledning</a> + </li> + <li> + <a href="#sourceCode">Kildekode</a> + </li> + <li> + <a href="#contribute">Bidra</a> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" + aria-expanded="false">Javadoc<span class="caret"></span></a> + <ul class="dropdown-menu"> + <li><a href="../javadoc/10.0.0">10.0.0</a></li> + <li><a href="../javadoc/9.2.0">9.2.0</a></li> + <li><a href="../javadoc/9.1.0">9.1.0</a></li> + <li><a href="../javadoc/9.0.0">9.0.0</a></li> + <li><a href="../javadoc/8.2.0">8.2.0</a></li> + <li><a href="../javadoc/8.1.0">8.1.0</a></li> + <li><a href="../javadoc/8.0.0">8.0.0</a></li> + <li><a href="../javadoc/7.1.0">7.1.0</a></li> + </ul> + </li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" + aria-expanded="false">Språk<span class="caret"></span></a> + <ul class="dropdown-menu"> + <li><a href="../index.html">English</a></li> + <li><a href="../de/index.html">Deutsch</a></li> + <li><a href="../el/index.html">Ελληνικά</a></li> + <li><a href="../es/index.html">Español</a></li> + <li><a href="../cn/index.html">中文</a></li> + <li><a href="../fr/index.html">Français</a></li> + <li><a href="../ja/index.html">日本語</a></li> + <li><a href="">Norsk (bokmål)</a></li> + <li><a href="../pt-br/index.html">Português-Brasil</a></li> + <li><a href="../ru/index.html">Русский</a></li> + <li><a href="../hi/index.html">हिंदी</a></li> + </ul> + </li> + </ul> + </div> + <!-- /.navbar-collapse --> + </div> + <!-- /.container --> + </nav> + + + <!-- Header --> + <a class="anchor" name="about"></a> + <div class="intro-header"> + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-push-2 col-lg-8"> + <div class="intro-message"> + <h1>Eclipse <span style="font-weight: 400">Collections</span></h1> + <h3>- Funksjoner du ønsker med samlingene du trenger -</h3> + </div> + </div> + </div> + + </div> + <!-- /.container --> + + </div> + <!-- /.intro-header --> + + <!-- Page Content --> + + <a class="anchor" name="start"></a> + <div class="content-section-a"> + + <div class="container-fluid"> + <div class="row"> + <div class="col-lg-5 col-sm-6"> + <hr class="section-heading-spacer"> + <div class="clearfix"></div> + <h2 class="section-heading">Kom i gang med <br>Eclipse Collections</h2> + <p class="lead">Eclipse Collections er det beste rammeverket for Java-samlinger + noensinne – det passer perfekt når du skal utvikle Java-koden din. + <br><br>Integrer den i kodebasen din i dag med dine favorittbyggverktøy!</p> + <object id="badge" data="https://snyk-widget.herokuapp.com/badge/mvn/org.eclipse.collections/eclipse-collections/badge.svg" type="image/svg+xml" style="vertical-align:middle"></object> + <a href="http://search.maven.org/#search%7Cgav%7C1%7Cg:%22org.eclipse.collections%22%20AND%20a:%22eclipse-collections%22"><img src="https://maven-badges.herokuapp.com/maven-central/org.eclipse.collections/eclipse-collections/badge.svg"></a> + <a href="https://github.com/eclipse/eclipse-collections/releases"><img src="https://img.shields.io/github/release/eclipse/eclipse-collections.svg"></a> + <a href="https://github.com/eclipse/eclipse-collections/blob/master/LICENSE-EPL-1.0.txt"><img src="https://img.shields.io/badge/License-EPL-blue.svg"></a> + <a href="https://github.com/eclipse/eclipse-collections/blob/master/LICENSE-EDL-1.0.txt"><img src="https://img.shields.io/badge/License-EDL-blue.svg"></a> + </div> + <div class="col-lg-7 col-sm-6"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#maven" data-toggle="tab">Maven</a></li> + <li><a href="#gradle" data-toggle="tab">Gradle</a></li> + <li><a href="#ivy" data-toggle="tab">Ivy</a></li> + <li><a href="#download" data-toggle="tab">Last ned</a></li> + </ul> + <div id="dependencies" class="tab-content"> + <div class="tab-pane fade in active" id="maven"> + <pre class="prettyprint"> +<dependency> + <groupId>org.eclipse.collections</groupId> + <artifactId>eclipse-collections-api</artifactId> + <version>10.4.0</version> +</dependency> + +<dependency> + <groupId>org.eclipse.collections</groupId> + <artifactId>eclipse-collections</artifactId> + <version>10.4.0</version> +</dependency></pre> + </div> + <div class="tab-pane fade" id="gradle"> + <pre class="prettyprint"> +implementation 'org.eclipse.collections:eclipse-collections-api:10.4.0' +implementation 'org.eclipse.collections:eclipse-collections:10.4.0'</pre> + </div> + <div class="tab-pane fade" id="ivy"> + <pre class="prettyprint"> +<dependency org="org.eclipse.collections" name="eclipse-collections-api" rev="10.4.0" /> +<dependency org="org.eclipse.collections" name="eclipse-collections" rev="10.4.0" /></pre> + </div> + <div class="tab-pane fade" id="download"> + <pre class="prettyprint"> +<a target="_blank" href="http://mvnrepository.com/artifact/org.eclipse.collections/eclipse-collections-api/10.4.0">eclipse-collections-api-10.4.0.jar</a> +<a target="_blank" href="http://mvnrepository.com/artifact/org.eclipse.collections/eclipse-collections/10.4.0">eclipse-collections-10.4.0.jar</a></pre> + </div> + + </div> + </div> + </div> + + </div> + <!-- /.container --> + + </div> + <!-- Get Started --> + + <a class="anchor" name="concept"></a> + <div class="content-section-b"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-push-7 col-lg-5 col-sm-push-6 col-sm-6"> + <hr class="section-heading-spacer"> + <div class="clearfix"></div> + <h2 class="section-heading">Omfangsrike, konsise og lesbare API-er</h2> + <p class="lead">Maksimer kraften til lambda-uttrykk og metodereferanser i Java 8 med omfangsrike API-er + som er direkte tilgjengelige i samlingene dine. + </p> + </div> + <div class="col-lg-pull-5 col-lg-7 col-sm-pull-6 col-sm-6"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#method" data-toggle="tab">Eclipse Collections m/metodereferanser</a></li> + <li><a href="#ec" data-toggle="tab">Eclipse Collections m/lambda-uttrykk</a></li> + <li><a href="#streams" data-toggle="tab">Java 8 Streams</a></li> + </ul> + <div id="ec-vs-streams" class="tab-content"> + <div class="tab-pane fade in active" id="method"> + <pre class="prettyprint lang-java"> +boolean anyPeopleHaveCats = + this.people + .anySatisfyWith(Person::hasPet, PetType.CAT); + +int countPeopleWithCats = + this.people + .countWith(Person::hasPet, PetType.CAT); + +MutableList<Person> peopleWithCats = + this.people + .selectWith(Person::hasPet, PetType.CAT)</pre> + </div> + <div class="tab-pane fade" id="ec"> + <pre class="prettyprint lang-java"> +boolean anyPeopleHaveCats = + this.people + .anySatisfy(person -> person.hasPet(PetType.CAT)); + +int countPeopleWithCats = + this.people + .count(person -> person.hasPet(PetType.CAT)); + +MutableList<Person> peopleWithCats = + this.people + .select(person -> person.hasPet(PetType.CAT));</pre> + </div> + <div class="tab-pane fade" id="streams"> + <pre class="prettyprint lang-java"> +boolean anyPeopleHaveCats = + this.people + .stream() + .anyMatch(person -> person.hasPet(PetType.CAT)); + +long countPeopleWithCats = + this.people + .stream() + .filter(person -> person.hasPet(PetType.CAT)) + .count(); + +List<Person> peopleWithCats = + this.people + .stream() + .filter(person -> person.hasPet(PetType.CAT)) + .collect(Collectors.toList());</pre> + </div> + </div> + <!-- /.tab-content --> + </div> + <!-- /.col --> + </div> + <!-- /.row --> + + </div> + <!-- /.container --> + + </div> + <!-- Rich and fluent API --> + + <div class="content-section-a"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-5 col-sm-6"> + <hr class="section-heading-spacer"> + <div class="clearfix"></div> + <h2 class="section-heading">Mange containertyper, inkludert <br>uforanderlige samlinger, primitive samlinger, Bimap, Multimap og Bag</h2> + <p class="lead">Uforanderlige (immutable) samlinger, samlinger av primitive typer, Bimap (omvendt ordbok hvor du kan finne en nøkkel etter verdi), + Multimap (multi-ordbøker – ordbøker med ikke-unike nøkler) og Bag (flersett – et sett med gjentagende elementer) – du kan bruke alle + disse typene containere ved bruk av praktiske og lett tilgjengelige factory-metoder.</p> + </div> + <div class="col-lg-7 col-sm-6"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#mutable" data-toggle="tab">Muterbare samlinger</a></li> + <li><a href="#immutable" data-toggle="tab">Uforanderlige samlinger</a></li> + <li><a href="#primitives" data-toggle="tab">Primitive samlinger</a></li> + </ul> + <div id="container-types" class="tab-content"> + <div class="tab-pane fade in active" id="mutable"> + <pre class="prettyprint lang-java"> +//Instansierer muterbar liste with empty()-, of()-, with()-metoder +MutableList<String> mutableListEmpty = + Lists.mutable.empty(); +MutableList<String> mutableListOf = + Lists.mutable.of("One", "One", "Two", "Three"); +MutableList<String> mutableListWith = + Lists.mutable.with("One", "One", "Two", "Three"); + +//Forskjellige container-typer som er tilgjengelige +MutableSet<String> mutableSet = + Sets.mutable.with("One", "One", "Two", "Three"); +MutableBag<String> mutableBag = + Bags.mutable.with("One", "One", "Two", "Three"); +MutableStack<String> mutableStack = + Stacks.mutable.with("One", "One", "Two", "Three"); +MutableMap<String, String> mutableMap = + Maps.mutable.with("key1", "value1", "key2", "value2", "key3", "value3"); +MutableMultimap<String, String> multimapWithList = + Multimaps.mutable.list.with("key1", "value1-1", "key1", "value1-2", "key2","value2-1"); +MutableBiMap<String, String> mutableBiMap = + BiMaps.mutable.with("key1", "value1", "key2", "value2", "key3", "value3");</pre> + </div> + <div class="tab-pane fade" id="immutable"> + <pre class="prettyprint lang-java"> +//Instansierer muterbar liste with empty()-, of()-, with()-metoder +ImmutableList<String> immutableListEmpty = + Lists.immutable.empty(); +ImmutableList<String> immutableListOf = + Lists.immutable.of("One", "One", "Two", "Three"); +ImmutableList<String> immutableListWith = + Lists.immutable.with("One", "One", "Two", "Three"); + +//Forskjellige container-typer som er tilgjengelige +ImmutableSet<String> immutableSet = + Sets.immutable.with("One", "One", "Two", "Three"); +ImmutableBag<String> immutableBag = + Bags.immutable.with("One", "One", "Two", "Three"); +ImmutableStack<String> immutableStack = + Stacks.immutable.with("One", "One", "Two", "Three"); +ImmutableMap<String, String> immutableMap = + Maps.immutable.with("key1", "value1", "key2", "value2", "key3", "value3"); +ImmutableMultimap<String, String> immutableMultimapWithList = + Multimaps.immutable.list.with("key1", "value1-1", "key1", "value1-2", "key2","value2-1"); +ImmutableBiMap<String, String> immutableBiMap = + BiMaps.immutable.with("key1", "value1", "key2", "value2", "key3", "value3");</pre> + </div> + <div class="tab-pane fade" id="primitives"> + <pre class="prettyprint lang-java"> +//Muterbare og uforanderlige lister, sett, Bags, Stacks og Maps er tilgjengelige for alle 8 primitive typer +MutableIntList intList = + IntLists.mutable.of(1, 2, 3); +MutableLongList longList = + LongLists.mutable.of(1L, 2L, 3L); +MutableCharList charList = + CharLists.mutable.of('a', 'b', 'c'); +MutableShortList shortList = + ShortLists.mutable.of((short)1, (short)2, (short)3); +MutableByteList byteList = + ByteLists.mutable.of((byte)1, (byte)2, (byte)3); +MutableBooleanList booleanList = + BooleanLists.mutable.of(true, false); +MutableFloatList floatList = + FloatLists.mutable.of(1.0f, 2.0f, 3.0f); +MutableDoubleList doubleList = + DoubleLists.mutable.of(1.0, 2.0, 3.0); + +//Du kan lage heltallslister med intervaller vha. IntInterval +IntInterval oneTo10 = + IntInterval.fromTo(1, 10); // heltall fra 1 til 10 +// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] +IntInterval oneTo10By3 = + IntInterval.fromToBy(1, 10, 3); // heltall fra 1 til 10 med steg 3 +// [1, 4, 7, 10] +IntInterval oddsFrom1To10 = + IntInterval.oddsFromTo(1, 10); // oddetall fra 1 til 10 +// [1, 3, 5, 7, 9] +IntInterval evensFrom1To10 = + IntInterval.evensFromTo(1, 10); // partall fra 1 til 10 +// [2, 4, 6, 8, 10]</pre> + </div> + </div> + <!-- /.tab-content --> + </div> + <!-- /.col --> + </div> + <!-- /.row --> + + </div> + <!-- /.container --> + + </div> + <!-- Container Types --> + + <a class="anchor" name="memory"></a> + <div class="content-section-b"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-push-6 col-lg-6 col-sm-push-6 col-sm-6"> + <hr class="section-heading-spacer"> + <div class="clearfix"></div> + <h2 class="section-heading">Reduser minnefotavtrykket <br>med minneeffektive containere</h2> + <p class="lead">Eclipse Collections gir minneeffektiv implementasjon av Sets og Maps, samt primitive samlinger. </p> + </div> + <div class="col-lg-pull-6 col-lg-6 col-sm-pull-6 col-sm-6"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#set" data-toggle="tab">Sets</a></li> + <li><a href="#map" data-toggle="tab">Maps</a></li> + <li><a href="#ints" data-toggle="tab">Primitive samlinger</a></li> + </ul> + <div id="memory" class="tab-content"> + <div class="tab-pane fade in active" id="set"> + <img class="img-responsive" src="../img/set.png" alt=""> + </div> + <div class="tab-pane fade" id="map"> + <img class="img-responsive" src="../img/map.png" alt=""> + </div> + <div class="tab-pane fade" id="ints"> + <img class="img-responsive" src="../img/ints.png" alt=""> + </div> + </div> + </div> + </div> + + </div> + <!-- /.container --> + + </div> + <!-- Memory footprint --> + + <a class="anchor" name="learn"></a> + <div class="content-section-a"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-5 col-sm-6"> + <hr class="section-heading-spacer"> + <div class="clearfix"></div> + <h2 class="section-heading">Lær Eclipse Collections med kodekata</h2> + <p class="lead"> + Ta en titt på <a href="https://github.com/eclipse/eclipse-collections-kata">Eclipse Collections Kata</a> – en gøy måte å hjelpe deg å lære + den idiomatiske bruken av Eclipse Collections. Denne spesielle kataen er satt opp som en serie enhetstester som feiler. Din oppgave er å få dem til + å passere ved hjelp av Eclipse Collections. + </p> + </div> + <div class="col-lg-7 col-sm-6"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#exercise" data-toggle="tab">Oppgaveeksempel</a></li> + <li><a href="#solution" data-toggle="tab">Løsningsforslag</a></li> + </ul> + <div class="tab-content"> + <div class="tab-pane fade in active" id="exercise"> + <pre class="prettyprint lang-java"> +@Test +public void getFirstNamesOfAllPeople() +{ + MutableList<Person> people = this.people; + MutableList<String> firstNames = null; //Replace null, with a transformation method on MutableList. + MutableList<String> expectedFirstNames = + Lists.mutable.with("Mary", "Bob", "Ted", "Jake", "Barry", "Terry", "Harry", "John"); + Assert.assertEquals(expectedFirstNames, firstNames); +}</pre> + </div> + <div class="tab-pane fade" id="solution"> + <pre class="prettyprint lang-java"> +@Test +public void getFirstNamesOfAllPeople() +{ + MutableList<Person> people = this.people; + MutableList<String> firstNames = people.collect(Person::getFirstName); + MutableList<String> expectedFirstNames = + Lists.mutable.with("Mary", "Bob", "Ted", "Jake", "Barry", "Terry", "Harry", "John"); + Assert.assertEquals(expectedFirstNames, firstNames); +}</pre> + </div> + </div> + <!-- /.tab-content --> + </div> + <!-- /.col --> + </div> + <!-- /.row --> + + </div> + <!-- /.container --> + + </div> + <!-- Kata --> + + <a class="anchor" name="history"></a> + <div class="content-section-b"> + + <div class="container-fluid"> + + <h2 class="section-heading">Historien til Eclipse Collections</h2> + <p class="lead"> + Opprinnelig startet Eclipse Collections som et samlingsrammeverk kalt Caramel på Goldman Sachs i 2004. + + Siden den gang har rammeverket utviklet seg, og i 2012 ble det lagt ut som åpen kiledekode på GitHub som et prosjekt kalt + <a href="https://github.com/goldmansachs/gs-collections">GS Collections</a>. + <br><br> + GS Collections har blitt presentert på en rekke + <a href="https://github.com/eclipse/eclipse-collections/wiki/Conference-talks-and-meetups">konferanser</a>, + inkludert JVM Summit i 2012 og JavaOne i 2014. + En sammenligning av ytelse mellom parallelle lazy implementasjoner i Java 8, Scala og GS Collections ble presentert på + <a href="http://www.infoq.com/presentations/java-streams-scala-parallel-collections">QCon New York</a> i 2014. + Videre ble <a href="https://github.com/eclipse/eclipse-collections/wiki/Articles">artikler</a> om GS Collections + (<a href="http://www.infoq.com/articles/GS-Collections-by-Example-1">Del 1</a> / + <a href="http://www.infoq.com/articles/GS-Collections-by-Example-2">Del 2</a>) + publisert på InfoQ.com. + Disse artiklene viser noen av funksjonene i rammeverket gjennom eksempler, samt et intervju med skaperen av GS Collections. + <br><br> + + Gjennom årene har rundt 40 utviklere fra det samme selskapet bidratt til rammeverket. + <br><br> + + For å utnytte fullt ut prosjektets potensiale som et åpen kildekode-prosjekt, ble GS Collections migrert til + Eclipse Foundation og endret navn til Eclipse Collections i 2015. + Nå er rammeverket helt åpent og aksepterer bidrag fra alle! + </p> + </div> + </div> + <!-- History --> + + <a class="anchor" name="refGuide"></a> + <div class="content-section-a"> + <div class="container-fluid"> + <h2 class="section-heading">Veiledning</h2> + <p class="lead"> + En omfattende referansehåndbok for biblioteket er tilgjengelig på GitHub: + <a href="https://github.com/eclipse/eclipse-collections/blob/master/docs/guide.md#eclipse-collections-reference-guide">Reference Guide</a>. + </p> + </div> + <!-- /.container --> + + </div> + <!-- Reference Guide --> + + <a class="anchor" name="sourceCode"></a> + <div class="content-section-b"> + <div class="container-fluid"> + <h2 class="section-heading">Kildekode</h2> + <p class="lead"> + Kildekoden er tilgjengelig på GitHub: <a href="https://github.com/eclipse/eclipse-collections">Eclipse Collections</a>. + </p> + </div> + <!-- /.container --> + </div> + <!-- Source Code --> + + <a class="anchor" name="contribute"></a> + <div class="content-footer"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-4 col-sm-4"> + <h3>Bidra</h3> + <p class="regular"> + Vi tar med glede imot bidrag! + <br><br> + Eclipse Collections Project Roadmap finner du <a href="https://github.com/eclipse/eclipse-collections/wiki/Roadmap">her</a>. + <br><br> + Vi godtar bidrag via pull-forespørsler på GitHub. + Se <a href="https://github.com/eclipse/eclipse-collections/blob/master/CONTRIBUTING.md">denne artikkelen om hvordan du kan bidra</a> for å komme i gang. + </p> + </div> + <div class="col-lg-4 col-sm-4"> + <h3>Siste nytt</h3> + <p class="regular">Eclipse Collections 10.4.0 <a href="https://github.com/eclipse/eclipse-collections/releases/tag/10.4.0">released</a> <a class="light">(Aug 20th 2020)</a></p> + <p class="regular">Eclipse Collections 10.3.0 <a href="https://github.com/eclipse/eclipse-collections/releases/tag/10.3.0">released</a> <a class="light">(Aug 8th 2020)</a></p> + <p class="regular">Eclipse Collections 10.2.0 <a href="https://github.com/eclipse/eclipse-collections/releases/tag/10.2.0">released</a> <a class="light">(Feb 11th 2020)</a></p> + <p class="regular">Eclipse Collections 10.1.0 <a href="https://github.com/eclipse/eclipse-collections/releases/tag/10.1.0">released</a> <a class="light">(Dec 4th 2019)</a></p> + <p class="regular">Eclipse Collections 10.0.0 <a href="https://github.com/eclipse/eclipse-collections/releases/tag/10.0.0">released</a> <a class="light">(Jul 10th 2019)</a></p> + </div> + <div class="col-lg-4 col-sm-4"> + <h3>Nyttige lenker</h3> + <p class="regular">Eclipse PMI: <a href="https://projects.eclipse.org/projects/technology.collections">eclipse project management infrastructure</a></p> + <p class="regular">GitHub: <a href="https://github.com/eclipse/eclipse-collections">eclipse-collections</a></p> + <p class="regular">Feilmeldinger og andre saker: <a href="https://github.com/eclipse/eclipse-collections/issues">GitHub issues</a></p> + <p class="regular">Mailinglister: <a href="https://dev.eclipse.org/mailman/listinfo/collections-dev">collections-dev</a>-mailinglisten</p> + <p class="regular">Wiki: <a href="https://github.com/eclipse/eclipse-collections/wiki">GitHub wiki</a></p> + <p class="regular">Forum: <a href="https://www.eclipse.org/forums/index.php?t=thread&frm_id=329">Eclipse Collections Forum</a></p> + <p class="regular">StackOverflow: tagget med <a href="http://stackoverflow.com/questions/tagged/eclipse-collections">eclipse-collections</a></p> + </div> + <!-- /.col --> + </div> + <!-- /.row --> + + </div> + <!-- /.container --> + + </div> + <!-- Container Types --> + + + <div class="banner"> + + <div class="container-fluid"> + + <div class="row"> + <div class="col-lg-12"> + <h3>- Flere funksjoner, mindre søppel -</h3> + </div> + </div> + + </div> + <!-- /.container --> + + </div> + <!-- /.banner --> + + <!-- Footer --> + <footer> + <div class="container-fluid"> + <div class="row"> + <div class="col-lg-12"> + <ul class="list-inline"> + <li> + <p class="copyright text-muted small">Copyright © 2018 The Eclipse Foundation. All Rights Reserved. </p> + </li> + <li class="footer-menu-divider">⋅</li> + <li> + <a class="small" href="http://www.eclipse.org">Eclipse Foundation</a> + </li> + <li class="footer-menu-divider">⋅</li> + <li> + <a class="small" href="http://www.eclipse.org/legal">Legal</a> + </li> + <li class="footer-menu-divider">⋅</li> + <li> + <a class="small" href="http://www.eclipse.org/legal/privacy.php">Privacy</a> + </li> + <li class="footer-menu-divider">⋅</li> + <li> + <a class="small" href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a> + </li> + <li class="footer-menu-divider">⋅</li> + <li> + <a class="small" href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a> + </li> + </ul> + </div> + </div> + </div> + </footer> + + <!-- jQuery --> + <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> + + <!-- Bootstrap Core JavaScript --> + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A==" crossorigin="anonymous"></script> + + <!-- Google Code Prettify --> + <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?skin=sunburst"></script> +</body> + +</html>
diff --git a/pt-br/index.html b/pt-br/index.html index 58f7995..112cf4c 100644 --- a/pt-br/index.html +++ b/pt-br/index.html
@@ -107,6 +107,7 @@ <li><a href="../cn/index.html">中文</a></li> <li><a href="../fr/index.html">Français</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="">Português-Brasil</a></li> <li><a href="../ru/index.html">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>
diff --git a/ru/index.html b/ru/index.html index 5c415e6..fdecdd6 100644 --- a/ru/index.html +++ b/ru/index.html
@@ -107,6 +107,7 @@ <li><a href="../fr/index.html">Français</a></li> <li><a href="../cn/index.html">中文</a></li> <li><a href="../ja/index.html">日本語</a></li> + <li><a href="../no-nb/index.html">Norsk (bokmål)</a></li> <li><a href="../pt-br/index.html">Português-Brasil</a></li> <li><a href="">Русский</a></li> <li><a href="../hi/index.html">हिंदी</a></li>