assert first != null || second != null; @SuppressWarnings( "null" ) final String workspaceName = first != null ? first.getWorkspaceName() : second.getWorkspaceName(); assert first == null || workspaceName.equals(first.getWorkspaceName()); assert second == null || workspaceName.equals(second.getWorkspaceName()); assert first == null || first.width() == firstWidth; assert second == null || second.width() == secondWidth;
assert first != null || second != null; @SuppressWarnings( "null" ) final String workspaceName = first != null ? first.getWorkspaceName() : second.getWorkspaceName(); assert first == null || workspaceName.equals(first.getWorkspaceName()); assert second == null || workspaceName.equals(second.getWorkspaceName()); assert first == null || first.width() == firstWidth; assert second == null || second.width() == secondWidth;
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return batch.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
/** * Create a copy of a batch that always has a {@link Batch#rowCount()}. * * @param batch the original batch; may be null * @return the batch that has a true {@link Batch#rowCount()}, or the original batch if null or empty or if the original has a * non-negative row count */ public static Batch copy( Batch batch ) { if (batch == null) return batch; if (batch.isEmpty() || batch.width() < 1) return emptyBatch(batch.getWorkspaceName(), 1); // Otherwise, create a copy ... return batch.width() == 1 ? new SingleWidthBatch(batch) : new MultiWidthBatch(batch); }
@Override public String getWorkspaceName() { return original.getWorkspaceName(); }
/** * Create a copy of a batch that always has a {@link Batch#rowCount()}. * * @param batch the original batch; may be null * @return the batch that has a true {@link Batch#rowCount()}, or the original batch if null or empty or if the original has a * non-negative row count */ public static Batch copy( Batch batch ) { if (batch == null) return batch; if (batch.isEmpty() || batch.width() < 1) return emptyBatch(batch.getWorkspaceName(), 1); // Otherwise, create a copy ... return batch.width() == 1 ? new SingleWidthBatch(batch) : new MultiWidthBatch(batch); }
@Override public String getWorkspaceName() { return batch.getWorkspaceName(); }