View TableCollector.java
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;
import com.google.common.collect.Table.Cell;
import com.google.common.collect.TreeBasedTable;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Value;
import lombok.experimental.Accessors;
import java.util.Collections;
View MergeUtil.java
package nl.meylingmedia.util;
import java.util.Comparator;
import java.util.function.BinaryOperator;
import java.util.function.Function;
/**
* Merge functions for solving duplicate keys in toMap collectors.
*
* @see java.util.stream.Collectors#toMap(Function, Function, BinaryOperator)
View README.md

Angular bind checkbox model to array

Angular model formatter and parser pair that transforms a set of checkboxes to an array filled with arbitrary values.

Usage

<input type="checkbox" ng-model="ctrl.myModel" data-multi-select-value="::arrayValue">
View DatabaseTestModule.java
package org.hibernate.test;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.persist.PersistService;
import com.google.inject.persist.jpa.JpaPersistModule;
public class DatabaseTestModule extends AbstractModule {
View Calculator.java
package nl.tudelft.cucumber;
import java.io.Closeable;
public class Calculator implements Closeable {
public int add(int a, int b) {
return a + b;
}
View DateTest.java
import org.junit.Test;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneId;
import static org.junit.Assert.assertEquals;
/**
View search-param.js
/**
* Angular Module that exposes the search parameters for the current window location.
* For example: http://localhost/?test=1
* Exposes: $searchParams.test === 5
* This is different than the search method in the $location service, which only exposes search params set in the location hash.
*
*/
angular.module('org.searchparams').service('$searchParams', function() {
window.location.search.substring(1)
.split("&")
View MultimapCollector.java
package nl.tudelft.ewi.gitolite.config.util;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.TreeMultimap;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Value;
View DatabaseModule.java
import javax.persistence.EntityManager;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.persist.PersistService;
import com.google.inject.persist.jpa.JpaPersistModule;
public class DatabaseModule extends AbstractModule {
View Circle.java
package nl.tudelft.ti2206.bubbles;
import java.awt.Point;
/**
* Circle
*
* @author Jan-Willem Gmelig Meyling
*
*/