Tabnine Logo
Tables$TransformedTable
Code IndexAdd Tabnine to your IDE (free)

How to use
Tables$TransformedTable
in
com.google.common.collect

Best Java code snippets using com.google.common.collect.Tables$TransformedTable (Showing top 20 results out of 315)

Refine searchRefine arrow

  • Table
origin: google/guava

/**
 * Returns a view of a table where each value is transformed by a function. All other properties
 * of the table, such as iteration order, are left intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely, this view supports
 * removal operations, and these are reflected in the underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
 * that the function is capable of accepting null input. The transformed table might contain null
 * values, if the function sometimes gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
 * table to be a view, but it means that the function will be applied many times for bulk
 * operations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform
 * well, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't
 * need to be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
@Beta
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<>(fromTable, function);
}
origin: google/guava

@Override
public V2 get(Object rowKey, Object columnKey) {
 // The function is passed a null input only when the table contains a null
 // value.
 return contains(rowKey, columnKey) ? function.apply(fromTable.get(rowKey, columnKey)) : null;
}
origin: google/guava

@Override
Iterator<Cell<R, C, V2>> cellIterator() {
 return Iterators.transform(fromTable.cellSet().iterator(), cellFunction());
}
origin: google/guava

@Override
public V2 remove(Object rowKey, Object columnKey) {
 return contains(rowKey, columnKey)
   ? function.apply(fromTable.remove(rowKey, columnKey))
   : null;
}
origin: google/j2objc

/**
 * Returns a view of a table where each value is transformed by a function. All other properties
 * of the table, such as iteration order, are left intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely, this view supports
 * removal operations, and these are reflected in the underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
 * that the function is capable of accepting null input. The transformed table might contain null
 * values, if the function sometimes gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
 * table to be a view, but it means that the function will be applied many times for bulk
 * operations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform
 * well, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't
 * need to be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
@Beta
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<>(fromTable, function);
}
origin: wildfly/wildfly

/**
 * Returns a view of a table where each value is transformed by a function. All other properties
 * of the table, such as iteration order, are left intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely, this view supports
 * removal operations, and these are reflected in the underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
 * that the function is capable of accepting null input. The transformed table might contain null
 * values, if the function sometimes gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
 * table to be a view, but it means that the function will be applied many times for bulk
 * operations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform
 * well, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't
 * need to be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
@Beta
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<>(fromTable, function);
}
origin: org.sonatype.sisu/sisu-guava

@Override public Map<C, Map<R, V2>> columnMap() {
 return (columnMap == null) ? columnMap = createColumnMap() : columnMap;
}
origin: org.hudsonci.lib.guava/guava

@Override public Map<C, Map<R, V2>> columnMap() {
 return (columnMap == null) ? columnMap = createColumnMap() : columnMap;
}
origin: org.hudsonci.lib.guava/guava

@Override public int hashCode() {
 return cellSet().hashCode();
}
origin: org.sonatype.sisu/sisu-guava

@Override public int hashCode() {
 return cellSet().hashCode();
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Returns a view of a table where each value is transformed by a function. All other properties
 * of the table, such as iteration order, are left intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely, this view supports
 * removal operations, and these are reflected in the underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
 * that the function is capable of accepting null input. The transformed table might contain null
 * values, if the function sometimes gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
 * table to be a view, but it means that the function will be applied many times for bulk
 * operations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform
 * well, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't
 * need to be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
@Beta
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<>(fromTable, function);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Returns a view of a table where each value is transformed by a function. All other properties
 * of the table, such as iteration order, are left intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely, this view supports
 * removal operations, and these are reflected in the underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even null values provided
 * that the function is capable of accepting null input. The transformed table might contain null
 * values, if the function sometimes gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
 * table to be a view, but it means that the function will be applied many times for bulk
 * operations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform
 * well, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't
 * need to be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
@Beta
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<>(fromTable, function);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: com.google.guava/guava-jdk5

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: com.diffplug.guava/guava-collect

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
    Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
  return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: com.ning.billing/killbill-osgi-bundles-analytics

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: org.hudsonci.lib.guava/guava

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
origin: org.sonatype.sisu/sisu-guava

/**
 * Returns a view of a table where each value is transformed by a function.
 * All other properties of the table, such as iteration order, are left
 * intact.
 *
 * <p>Changes in the underlying table are reflected in this view. Conversely,
 * this view supports removal operations, and these are reflected in the
 * underlying table.
 *
 * <p>It's acceptable for the underlying table to contain null keys, and even
 * null values provided that the function is capable of accepting null input.
 * The transformed table might contain null values, if the function sometimes
 * gives a null result.
 *
 * <p>The returned table is not thread-safe or serializable, even if the
 * underlying table is.
 *
 * <p>The function is applied lazily, invoked when needed. This is necessary
 * for the returned table to be a view, but it means that the function will be
 * applied many times for bulk operations like {@link Table#containsValue} and
 * {@code Table.toString()}. For this to perform well, {@code function} should
 * be fast. To avoid lazy evaluation when the returned table doesn't need to
 * be a view, copy the returned table into a new table of your choosing.
 *
 * @since 10.0
 */
public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

public static <R, C, V1, V2> Table<R, C, V2> transformValues(
  Table<R, C, V1> fromTable, Function<? super V1, V2> function) {
 return new TransformedTable<R, C, V1, V2>(fromTable, function);
com.google.common.collectTables$TransformedTable

Most used methods

  • <init>
  • contains
  • cellFunction
  • cellSet
  • createColumnMap
  • createRowMap
  • rowMap
  • values

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ImageIO (javax.imageio)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now